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