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, idConverterFields inherited from interface me.ahoo.cosid.snowflake.SnowflakeId
TOTAL_BIT -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSnowflakeFriendlyId(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, statMethods inherited from class me.ahoo.cosid.StringIdGeneratorDecorator
getActual, idConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.ahoo.cosid.IdGenerator
generateAsString, idConverterMethods inherited from interface me.ahoo.cosid.IdGeneratorDecorator
generateMethods inherited from interface me.ahoo.cosid.snowflake.SnowflakeFriendlyId
friendlyId, friendlyId, ofFriendlyIdMethods 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:
getParserin interfaceSnowflakeFriendlyId
-