Package com.helger.base.id.factory
Class StringIDFromIntIDFactory
java.lang.Object
com.helger.base.id.factory.StringIDFactory
com.helger.base.id.factory.StringIDFromIntIDFactory
- All Implemented Interfaces:
IBaseIDFactory,IIDFactory<String>,IStringIDFactory
A factory that creates String IDs based on a specified
IIntIDFactory.
The implementation is as thread-safe as the used IIntIDFactory.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionStringIDFromIntIDFactory(@NonNull IIntIDFactory aIntIDFactory) Constructor using the default prefix.StringIDFromIntIDFactory(@NonNull IIntIDFactory aIntIDFactory, @NonNull String sPrefix) Constructor with a custom prefix. -
Method Summary
-
Constructor Details
-
StringIDFromIntIDFactory
Constructor using the default prefix.- Parameters:
aIntIDFactory- The int ID factory to use. May not benull.
-
StringIDFromIntIDFactory
Constructor with a custom prefix.- Parameters:
aIntIDFactory- The int ID factory to use. May not benull.sPrefix- The prefix to prepend to each generated ID. May not benull.
-