Package com.helger.commons.id.factory
Class MemoryLongIDFactory
java.lang.Object
com.helger.commons.id.factory.MemoryLongIDFactory
- All Implemented Interfaces:
IBaseIDFactory,ILongIDFactory
A default implementation for non-negative in-memory IDs.
- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_START_ID
public static final long DEFAULT_START_IDThe default start ID to use.- See Also:
-
-
Constructor Details
-
MemoryLongIDFactory
public MemoryLongIDFactory() -
MemoryLongIDFactory
-
-
Method Details
-
getNewID
public long getNewID()Description copied from interface:ILongIDFactoryCreate a new unique long ID.- Specified by:
getNewIDin interfaceILongIDFactory- Returns:
- The newly created ID.
-
equals
-
hashCode
public int hashCode() -
toString
-