Class Counter


  • public final class Counter
    extends Object
    A simple counter class that wraps an AtomicInteger. This class is thread-safe.
    Since:
    0.15
    • Constructor Detail

      • Counter

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

      • next

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