Package me.ahoo.cosid.snowflake
Class DefaultSnowflakeFriendlyId
java.lang.Object
me.ahoo.cosid.StringIdGeneratorDecorator
me.ahoo.cosid.snowflake.StringSnowflakeId
me.ahoo.cosid.snowflake.DefaultSnowflakeFriendlyId
- All Implemented Interfaces:
Decorator<IdGenerator>
,IdGenerator
,IdGeneratorDecorator
,SnowflakeFriendlyId
,SnowflakeId
,Statistical
,StringIdGenerator
Default Snowflake FriendlyId.
-
Field Summary
Fields inherited from class me.ahoo.cosid.StringIdGeneratorDecorator
actual, idConverter
Fields inherited from interface me.ahoo.cosid.snowflake.SnowflakeId
TOTAL_BIT
-
Constructor Summary
ConstructorDescriptionDefaultSnowflakeFriendlyId
(SnowflakeId actual, ZoneId zoneId) DefaultSnowflakeFriendlyId
(SnowflakeId actual, IdConverter converter, SnowflakeIdStateParser snowflakeIdStateParser) DefaultSnowflakeFriendlyId
(SnowflakeId actual, SnowflakeIdStateParser snowflakeIdStateParser) -
Method Summary
Methods inherited from class me.ahoo.cosid.snowflake.StringSnowflakeId
getEpoch, getLastTimestamp, getMachineBit, getMachineId, getMaxMachineId, getMaxSequence, getMaxTimestamp, getSequenceBit, getTimestampBit, stat
Methods inherited from class me.ahoo.cosid.StringIdGeneratorDecorator
getActual, idConverter
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, idConverter
Methods inherited from interface me.ahoo.cosid.IdGeneratorDecorator
generate
Methods inherited from interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
friendlyId, friendlyId, ofFriendlyId
Methods inherited from interface me.ahoo.cosid.snowflake.SnowflakeId
getEpoch, getLastTimestamp, getMachineBit, getMachineId, getMaxMachineId, getMaxSequence, getMaxTimestamp, getSequenceBit, getTimestampBit, isSafeJavascript, stat
-
Constructor Details
-
DefaultSnowflakeFriendlyId
-
DefaultSnowflakeFriendlyId
-
DefaultSnowflakeFriendlyId
public DefaultSnowflakeFriendlyId(SnowflakeId actual, SnowflakeIdStateParser snowflakeIdStateParser) -
DefaultSnowflakeFriendlyId
public DefaultSnowflakeFriendlyId(SnowflakeId actual, IdConverter converter, SnowflakeIdStateParser snowflakeIdStateParser)
-
-
Method Details
-
getParser
- Specified by:
getParser
in interfaceSnowflakeFriendlyId
-