Package net.masterthought.cucumber.util
Class Counter
java.lang.Object
java.lang.Number
org.apache.commons.lang3.mutable.MutableInt
net.masterthought.cucumber.util.Counter
- All Implemented Interfaces:
Serializable,Comparable<org.apache.commons.lang3.mutable.MutableInt>,org.apache.commons.lang3.mutable.Mutable<Number>
public class Counter
extends org.apache.commons.lang3.mutable.MutableInt
Simple counter to give elements on a page a unique ID. Using object hashes
doesn't guarantee uniqueness.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.lang3.mutable.MutableInt
add, add, addAndGet, addAndGet, compareTo, decrement, decrementAndGet, doubleValue, equals, floatValue, getAndAdd, getAndAdd, getAndDecrement, getAndIncrement, getValue, hashCode, increment, incrementAndGet, intValue, longValue, setValue, setValue, subtract, subtract, toInteger, toStringMethods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
Counter
public Counter()
-
-
Method Details
-
next
public int next()- Returns:
- The next integer
-