Package com.helger.commons.id.factory
Class MemoryIntIDFactory
java.lang.Object
com.helger.commons.id.factory.MemoryIntIDFactory
- All Implemented Interfaces:
IBaseIDFactory,IIntIDFactory
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 int DEFAULT_START_IDThe default start ID to use.- See Also:
-
-
Constructor Details
-
MemoryIntIDFactory
public MemoryIntIDFactory() -
MemoryIntIDFactory
-
-
Method Details
-
getNewID
public int getNewID()Description copied from interface:IIntIDFactoryCreate a new unique integer ID.- Specified by:
getNewIDin interfaceIIntIDFactory- Returns:
- The newly created ID.
-
equals
-
hashCode
public int hashCode() -
toString
-