Appearance
IsOrderedId Method
Definition
- Namespace:
JASE - Assembly:
JASE.IdGenerator.dll
bool IsOrderedId(long value)
csharp
bool IsOrderedId(long value)Determines whether a value conforms to the OrderedId bit layout and decodes to a plausible timestamp for this generator instance.
Parameters
| Name | Description |
|---|---|
value | The 64-bit value to inspect. |
Returns
true if the value structurally matches the OrderedId format and decodes to a valid timestamp relative to Epoch; otherwise false.
Remarks
This method performs a structural and sanity check only. It does not guarantee that the identifier was generated by this generator instance.
Validation includes:
Timestamp fits within the 41-bit rangeNode id fits within the 10-bit rangeSequence fits within the 12-bit rangeTimestamp is non-negative relative to Epoch