Class Incrementor

java.lang.Object
org.apache.commons.math3.util.Incrementor

@Deprecated public class Incrementor extends Object
Deprecated.
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.0