Package com.helger.commons.id.factory
-
Interface Summary Interface Description IBaseIDFactory Base marker interface for all ID factories.IIDFactory<IDTYPE> Interface for an object creating unique IDs.IIntIDFactory Interface for an object creating unique int IDs.ILongIDFactory Interface for an object creating unique long IDs.IStringIDFactory Interface for an object creating unique String IDs. -
Class Summary Class Description AbstractPersistingIntIDFactory This implementation ofIIntIDFactoryreads IDs from a device.AbstractPersistingLongIDFactory This implementation ofILongIDFactoryreads IDs from a device.FileIntIDFactory Filebased persistingIIntIDFactoryimplementation.FileLongIDFactory Filebased persistingILongIDFactoryimplementation.GlobalIDFactory This class should not be static since it may have an impact if this class is used by different projects which have a separate IntID factory.MemoryIntIDFactory A default implementation for non-negative in-memory IDs.MemoryLongIDFactory A default implementation for non-negative in-memory IDs.MemoryStaticIntIDFactory An implementation ofIIntIDFactoryusing a single staticAtomicInteger.MemoryStaticLongIDFactory An implementation ofILongIDFactoryusing a single staticAtomicLong.StringIDFactory AnIStringIDFactoryimplementation that uses a constant prefix and an int supplied fromGlobalIDFactory.getNewIntID()to create unique IDs.StringIDFromGlobalIntIDFactory AnIStringIDFactoryimplementation that uses a constant prefix and an int supplied fromGlobalIDFactory.getNewIntID()to create unique IDs.StringIDFromGlobalLongIDFactory AnIStringIDFactoryimplementation that uses a constant prefix and a long supplied fromGlobalIDFactory.getNewLongID()to create unique IDs.StringIDFromGlobalPersistentIntIDFactory AnIStringIDFactoryimplementation that uses a constant prefix and an int supplied fromGlobalIDFactory.getNewPersistentIntID()to create unique IDs.StringIDFromGlobalPersistentLongIDFactory AnIStringIDFactoryimplementation that uses a constant prefix and a long supplied fromGlobalIDFactory.getNewPersistentLongID()to create unique IDs.StringIDFromIntIDFactory A factory that creates String IDs based on a specifiedIIntIDFactory.StringIDFromLongIDFactory A factory that creates String IDs based on a specifiedILongIDFactory.