Package me.ahoo.cosid
Class StringIdGeneratorDecorator
java.lang.Object
me.ahoo.cosid.StringIdGeneratorDecorator
- All Implemented Interfaces:
Decorator<IdGenerator>
,IdGenerator
,IdGeneratorDecorator
,Statistical
,StringIdGenerator
- Direct Known Subclasses:
MockIdGenerator
,StringSegmentId
,StringSnowflakeId
used to enhance the generated string ID.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet decorator actual id generator.ID converter, used to convertlong
type ID toString
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.ahoo.cosid.IdGenerator
generateAsString
Methods inherited from interface me.ahoo.cosid.IdGeneratorDecorator
generate, stat
-
Field Details
-
actual
-
idConverter
-
-
Constructor Details
-
StringIdGeneratorDecorator
-
-
Method Details
-
idConverter
Description copied from interface:IdGenerator
ID converter, used to convertlong
type ID toString
.- Specified by:
idConverter
in interfaceIdGenerator
- Returns:
- ID converter
-
getActual
Description copied from interface:IdGeneratorDecorator
Get decorator actual id generator.- Specified by:
getActual
in interfaceDecorator<IdGenerator>
- Specified by:
getActual
in interfaceIdGeneratorDecorator
- Returns:
- actual id generator
-