MCPcopy Index your code
hub / github.com/chain/Core / hasNext

Method hasNext

sdk/java/src/main/java/com/chain/api/PagedItems.java:87–107  ·  view source on GitHub ↗

Returns true if there is another item in the results list. @return boolean

()

Source from the content-addressed store, hash-verified

85 * @return boolean
86 */
87 public boolean hasNext() {
88 if (pos < list.size()) {
89 return true;
90 } else {
91 if (!lastPage) {
92 try {
93 PagedItems<T> items = this.getPage();
94 this.pos = 0;
95 this.list = items.list;
96 this.lastPage = items.lastPage;
97 this.next = items.next;
98
99 return this.list.size() > 0;
100 } catch (ChainException e) {
101 return false;
102 }
103 } else {
104 return false;
105 }
106 }
107 }
108
109 /**
110 * This method is unsupported.

Callers 14

loadKeysMethod · 0.80
loadKeysMethod · 0.80
testAssetPaginationMethod · 0.80
testPaginationMethod · 0.80
accountTagsMethod · 0.80
assetTagsMethod · 0.80
createBalanceMapMethod · 0.80
accessTokensMethod · 0.80
BatchResponseMethod · 0.80
nextMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 2

getPageMethod · 0.95
sizeMethod · 0.80

Tested by 6

testAssetPaginationMethod · 0.64
testPaginationMethod · 0.64
accountTagsMethod · 0.64
assetTagsMethod · 0.64
createBalanceMapMethod · 0.64
accessTokensMethod · 0.64