ULID

final case class ULID(ulid: String) extends Ordered[ULID]

ULID string, consisting of 26 characters.

ULID string, consisting of 26 characters.

Companion
object
trait Serializable
trait Product
trait Equals
trait Ordered[ULID]
trait Comparable[ULID]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def compare(that: ULID): Int
Definition Classes
Ordered
def randomness: (Long, Long)

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))

def timestamp: Long

Return 48-bit UNIX-time of this ULID in milliseconds

Return 48-bit UNIX-time of this ULID in milliseconds

def toBytes: Array[Byte]

Get a 128-bit (16 byte) binary representation of this ULID.

Get a 128-bit (16 byte) binary representation of this ULID.

def toInstant: Instant
override def toString: String

Return the string representation of this ULID

Return the string representation of this ULID

Definition Classes
Any

Inherited methods

def <(that: ULID): Boolean
Inherited from
Ordered
def <=(that: ULID): Boolean
Inherited from
Ordered
def >(that: ULID): Boolean
Inherited from
Ordered
def >=(that: ULID): Boolean
Inherited from
Ordered
def compareTo(that: ULID): Int
Inherited from
Ordered
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy val epochMillis: Long

Get the epoch milliseconds (milliseconds from 1970-01-01 UTC) of this ULID.

Get the epoch milliseconds (milliseconds from 1970-01-01 UTC) of this ULID.