Returns true if this Id is less than the provided Id.
Returns true if this Id is less than or equal to the provided Id.
Returns true if this Id is greater than the provided Id.
Returns true if this Id is greater than or equal to the provided Id.
Extracts the id of the node generated this Id.
Extracts the sequence of this Id.
Extracts the timestamp of this Id.
Returns a shortened base64 like String representation of this Id.
Returns a base64 like String representation of this Id.
Returns a base64 like String representation of this Id.
Returns a tuple with the timestamp, the node and the sequence of this Id
The Long behind this Id.
Value class of 64-bit Ids with underlying type of Long.
An Id instance doesn't know about the way it is structured. This depends on the Scheme of its Generator. So, the methods whiches extract parameters (e.g.
timestamp
,node
andsequence
) from an Id require an implicit Scheme. Consequently, those methods will return different results depending on the provided Scheme.Generally, when an Id is constructed by a timestamp, a node and a sequence a Scheme is required. On the other hand, an Id can be constructed by a Long or a String without a Scheme.
Ids are sorted the same way as Ids, as Longs and as Strings. The default Ordering, implicit in the companion object, sorts Ids first by their timestamp, then by their node and then by their sequence.