Attributes
Members list
Value members
Concrete methods
Creates a ULID from a string. Performs string length validation, character validation, and overflow validation.
Creates a ULID from a string. Performs string length validation, character validation, and overflow validation.
Attributes
- Returns
-
If string is valid, returns Right(ULID), otherwise returns Left(ULIDStringParsingError)
Creates a ULID from a timestamp and random bytes. Performs timestamp validation and random bytes size validation
Creates a ULID from a timestamp and random bytes. Performs timestamp validation and random bytes size validation
Value parameters
- randomBytes
-
Chunk (of size 10) of random bytes
- timestamp
-
Timestamp in unix (epoch) milliseconds. Should be less than 281474976710655L
Attributes
- Returns
-
If timestamp and random bytes are valid, returns Right(ULID), otherwise returns Left(ULIDBytesParsingError)
generates a new random ULID
generates a new random ULID
Attributes
- Returns
-
a new random ULID