Module me.ahoo.cosid.core
Package me.ahoo.cosid.codec
package me.ahoo.cosid.codec
Turning ids into text and back:
IdCodec for long ids, PartsCodec
for time-based parts, GroupedCodec for periodic segments, and the built-in radix, friendly and prefix codecs.-
ClassDescriptionA date prefix, such as
20261026-, put before the text of another codec (03-core-model.md §1).Where the date of the prefix comes from.Encodes a time-based id as readable text,yyyyMMddHHmmssSSS-<node>-<seq>, fromLayout.unpack(long); the time zone is always explicit (03-core-model.md §1).Turns alongid into text and back (03-core-model.md §1).Encodes the parts of a time-based id as text; the only output of ids wider than 63 bits, such asLayout.COSID_80(D4).Encodes non-negative ids in base 2 to 62 with the digits0-9A-Za-z; replaces the 4.xToStringIdConverter,Radix36IdConverterandRadix62IdConverter(03-core-model.md §1).