Class IntegerSequence.Incrementor

java.lang.Object
org.apache.commons.math3.util.IntegerSequence.Incrementor
All Implemented Interfaces:
Iterator<Integer>
Enclosing class:
IntegerSequence

public static class IntegerSequence.Incrementor extends Object implements Iterator<Integer>
Utility that increments a counter until a maximum is reached, at which point, the instance will by default throw a MaxCountExceededException. However, the user is able to override this behaviour by defining a custom callback, in order to e.g. select which exception must be thrown.
Since:
3.6