Class MemoryIntIDFactory

java.lang.Object
com.helger.commons.id.factory.MemoryIntIDFactory
All Implemented Interfaces:
IBaseIDFactory, IIntIDFactory

@ThreadSafe public final class MemoryIntIDFactory extends Object implements IIntIDFactory
A default implementation for non-negative in-memory IDs.
Author:
Philip Helger
  • Field Details

    • DEFAULT_START_ID

      public static final int DEFAULT_START_ID
      The default start ID to use.
      See Also:
  • Constructor Details

    • MemoryIntIDFactory

      public MemoryIntIDFactory()
    • MemoryIntIDFactory

      public MemoryIntIDFactory(@Nonnegative int nStartID)
  • Method Details