MCPcopy Index your code
hub / github.com/apache/groovy / hasNext

Method hasNext

src/main/java/groovy/lang/ObjectRange.java:508–516  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

506 * {@inheritDoc}
507 */
508 @Override
509 public boolean hasNext() {
510 // not thread safe
511 if (!nextFetched) {
512 value = peek();
513 nextFetched = true;
514 }
515 return value != null;
516 }
517
518 private Comparable peek() {
519 if (step > 0) {

Callers 6

getMethod · 0.95
sizeMethod · 0.95
subListMethod · 0.95
containsMethod · 0.95
stepMethod · 0.95
nextMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected