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