Nanoflake

fun Nanoflake(epoch: Long, value: Long)

Creates a new nanoflake.

Parameters

epoch

the nanoflake's epoch.

value

the nanoflake's value.

fun Nanoflake(epoch: Long, value: String)

Creates a new nanoflake, parsing the value from a string.

Parameters

epoch

the nanoflake's epoch.

value

the nanoflake's value.

fun Nanoflake(epoch: Long, value: String, radix: Int)

Creates a new nanoflake, parsing the value from a string with a radix.

Parameters

epoch

the nanoflake's epoch.

value

the nanoflake's value.

radix

the radix of the nanoflake.