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

Method next

src/main/java/groovy/lang/IntRange.java:92–105  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

90 * {@inheritDoc}
91 */
92 @Override
93 public Integer next() {
94 if (!hasNext()) {
95 throw new NoSuchElementException();
96 }
97 if (index++ > 0) {
98 if (isReverse()) {
99 --value;
100 } else {
101 ++value;
102 }
103 }
104 return value;
105 }
106
107 /**
108 * Not supported.

Calls 2

hasNextMethod · 0.95
isReverseMethod · 0.65