Class TimeOrderedUuidCreator
- java.lang.Object
-
- com.github.f4b6a3.uuid.creator.AbstractUuidCreator
-
- com.github.f4b6a3.uuid.creator.AbstractTimeBasedUuidCreator
-
- com.github.f4b6a3.uuid.creator.rfc4122.TimeOrderedUuidCreator
-
- All Implemented Interfaces:
NoArgumentsUuidCreator
public final class TimeOrderedUuidCreator extends AbstractTimeBasedUuidCreator
Factory that creates time-ordered UUIDs. RFC-4122 version: 6. Proposal: http://gh.peabody.io/uuidv6/ IETF Draft: https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format
-
-
Field Summary
-
Fields inherited from class com.github.f4b6a3.uuid.creator.AbstractTimeBasedUuidCreator
clockSequenceStrategy, nodeIdentifierStrategy, timestampStrategy
-
Fields inherited from class com.github.f4b6a3.uuid.creator.AbstractUuidCreator
version, versionBits
-
-
Constructor Summary
Constructors Constructor Description TimeOrderedUuidCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longformatMostSignificantBits(long timestamp)Returns the timestamp bits of the UUID version 6, keeping its byte order unchanged.-
Methods inherited from class com.github.f4b6a3.uuid.creator.AbstractTimeBasedUuidCreator
create, create, formatLeastSignificantBits, withClockSequence, withClockSequence, withClockSequenceStrategy, withHashNodeIdentifier, withMacNodeIdentifier, withNodeIdentifier, withNodeIdentifier, withNodeIdentifierStrategy, withTimestampStrategy
-
Methods inherited from class com.github.f4b6a3.uuid.creator.AbstractUuidCreator
applyVariantBits, applyVersionBits, getVersion
-
-
-
-
Method Detail
-
formatMostSignificantBits
protected long formatMostSignificantBits(long timestamp)
Returns the timestamp bits of the UUID version 6, keeping its byte order unchanged.- Overrides:
formatMostSignificantBitsin classAbstractTimeBasedUuidCreator- Parameters:
timestamp- a timestamp- Returns:
- the MSB
-
-