Package org.eolang.jeo.representation
Class Counter
java.lang.Object
org.eolang.jeo.representation.Counter
A simple counter class that wraps an AtomicInteger.
This class is thread-safe.
- Since:
- 0.15
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Counter
public Counter(long all) Constructor.- Parameters:
all- Total number of items.
-
-
Method Details
-
next
Get the current count and increment it.- Returns:
- The current count in the format "current/total".
-