Snowflake

constructor(value: ULong)(source)

Creates a Snowflake from a given ULong value.

Values are coerced in validValues.


constructor(value: String)(source)

Creates a Snowflake from a given String value, parsing it as a ULong value.

Values are coerced in validValues.


constructor(timestamp: Instant)(source)

Creates a Snowflake from a given timestamp.

If the given timestamp is too far in the past / future, this constructor will create an instance with a timestamp equal to the timestamp of Snowflake.min / Snowflake.max.