Class UniqueIdGenerator


  • public final class UniqueIdGenerator
    extends Object
    Utility class for generating unique. This class is fully thread-safe.

    It gives out at most MAX_INT ids, afterwards it throws an exception.

    • Constructor Detail

      • UniqueIdGenerator

        public UniqueIdGenerator()
    • Method Detail

      • getFreshId

        public int getFreshId()