{@inheritDoc}
(int step, Closure closure)
| 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} |