ULID
Attributes
- Graph
-
- Supertypes
- Self type
-
ULID.type
Members list
Type members
Classlikes
Base 32 encoding by Douglas Crockford: https://www.crockford.com/base32.html
Base 32 encoding by Douglas Crockford: https://www.crockford.com/base32.html
Attributes
- Supertypes
- Self type
-
CrockfordBase32.type
ULID generator.
ULID generator.
Value parameters
- random
-
a function that returns a 80-bit random values in Array[Byte] (size:10)
- timeSource
-
a function that returns the current time in milliseconds (e.g. java.lang.System.currentTimeMillis())
Attributes
- Supertypes
Inherited classlikes
Attributes
- Inherited from:
- AutoShow
- Supertypes
Value members
Concrete methods
Create a ne ULID from a byte sequence (16-bytes)
Create a ne ULID from a byte sequence (16-bytes)
Attributes
Create a ne ULID from a byte sequence (16-bytes)
Create a ne ULID from a byte sequence (16-bytes)
Attributes
check a given string is valid as ULID
check a given string is valid as ULID
Attributes
Create an ULID from a given timestamp (48-bit) and a random value (80-bit)
Create an ULID from a given timestamp (48-bit) and a random value (80-bit)
Value parameters
- randHi
-
16-bit hi-part of 80-bit random value
- randLow
-
64-bit low-part of 80-bit random value
- unixTimeMillis
-
48-bit unix time millis
Attributes
Inherited methods
Givens
Inherited givens
Attributes
- Inherited from:
- AutoShow
Attributes
- Inherited from:
- OpaqueString
Attributes
- Inherited from:
- OpaqueString
Extensions
Extensions
Return 80-bits randomness value of this ULID using a pair of (Long (16-bit), Long (64-bit))
Return 80-bits randomness value of this ULID using a pair of (Long (16-bit), Long (64-bit))
Attributes
Return 48-bit UNIX-time of this ULID in milliseconds
Return 48-bit UNIX-time of this ULID in milliseconds
Attributes
Get a 128-bit (16 byte) binary representation of this ULID.
Get a 128-bit (16 byte) binary representation of this ULID.