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 Details

    • Counter

      public Counter(long all)
      Constructor.
      Parameters:
      all - Total number of items.
  • Method Details

    • next

      public String next()
      Get the current count and increment it.
      Returns:
      The current count in the format "current/total".