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

Method next

src/main/java/groovy/lang/NumberRange.java:708–717  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

706 * {@inheritDoc}
707 */
708 @Override
709 public Comparable next() {
710 if (!hasNext()) {
711 throw new NoSuchElementException();
712 }
713
714 fetchNextIfNeeded();
715 isNextFetched = false;
716 return next;
717 }
718
719 private void fetchNextIfNeeded() {
720 if (isNextFetched) {

Callers 5

getMethod · 0.95
calcSizeMethod · 0.95
subListMethod · 0.95
containsMethod · 0.95
stepMethod · 0.95

Calls 2

hasNextMethod · 0.95
fetchNextIfNeededMethod · 0.95

Tested by

no test coverage detected