Package com.helger.commons.id.factory
Class MemoryStaticIntIDFactory
java.lang.Object
com.helger.commons.id.factory.MemoryStaticIntIDFactory
- All Implemented Interfaces:
IBaseIDFactory,IIntIDFactory
An implementation of
IIntIDFactory using a single static
AtomicInteger.- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INITIAL_ID
public static final int INITIAL_IDThe default start ID to use.- See Also:
-
-
Constructor Details
-
MemoryStaticIntIDFactory
public MemoryStaticIntIDFactory()
-
-
Method Details
-
getNewID
Description copied from interface:IIntIDFactoryCreate a new unique integer ID.- Specified by:
getNewIDin interfaceIIntIDFactory- Returns:
- The newly created ID.
-
getNewStaticID
-
equals
-
hashCode
public int hashCode() -
toString
-