MCPcopy Index your code
hub / github.com/google/gson / hasNext

Method hasNext

src/main/java/com/google/gson/stream/JsonReader.java:331–334  ·  view source on GitHub ↗

Returns true if the current array or object has another element.

()

Source from the content-addressed store, hash-verified

329 * Returns true if the current array or object has another element.
330 */
331 public boolean hasNext() throws IOException {
332 quickPeek();
333 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY;
334 }
335
336 /**
337 * Returns the type of the next token without consuming it.

Callers 6

testReadEmptyArrayMethod · 0.95
testReadEmptyObjectMethod · 0.95
testIteratorMethod · 0.45
toIntArrayMethod · 0.45
parseRecursiveMethod · 0.45

Calls 1

quickPeekMethod · 0.95

Tested by 5

testReadEmptyArrayMethod · 0.76
testReadEmptyObjectMethod · 0.76
testIteratorMethod · 0.36
toIntArrayMethod · 0.36