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

Method step

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

{@inheritDoc}

(int step, Closure closure)

Source from the content-addressed store, hash-verified

433 * {@inheritDoc}
434 */
435 @Override
436 public void step(int step, Closure closure) {
437 if (step == 0 && compareTo(from, to) == 0) {
438 return; // from == to and step == 0, nothing to do, so return
439 }
440 final Iterator<Comparable> iter = new StepIterator(this, step);
441 while (iter.hasNext()) {
442 closure.call(iter.next());
443 }
444 }
445
446 /**
447 * {@inheritDoc}

Callers

nothing calls this directly

Calls 5

compareToMethod · 0.95
hasNextMethod · 0.95
nextMethod · 0.95
asListMethod · 0.95
callMethod · 0.65

Tested by

no test coverage detected