Package com.helger.base.id.factory
Class StringIDFromGlobalIntIDFactory
java.lang.Object
com.helger.base.id.factory.StringIDFactory
com.helger.base.id.factory.StringIDFromGlobalIntIDFactory
- All Implemented Interfaces:
IBaseIDFactory,IIDFactory<String>,IStringIDFactory
An
IStringIDFactory implementation that uses a constant prefix and an
int supplied from GlobalIDFactory.getNewIntID() to create unique IDs.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor using the default prefix.StringIDFromGlobalIntIDFactory(@NonNull String sPrefix) Constructor with a custom prefix. -
Method Summary
-
Constructor Details
-
StringIDFromGlobalIntIDFactory
public StringIDFromGlobalIntIDFactory()Constructor using the default prefix. -
StringIDFromGlobalIntIDFactory
Constructor with a custom prefix.- Parameters:
sPrefix- The prefix to prepend to each generated ID. May not benull.
-