Class DatePrefix

java.lang.Object
me.ahoo.cosid.codec.DatePrefix

public final class DatePrefix extends Object
A date prefix, such as 20261026-, put before the text of another codec (03-core-model.md ยง1).

The date comes from the id itself (DatePrefix.Source.ID_TIME, time-based ids only) or from the injected TimeSource (DatePrefix.Source.NOW, as 4.x segments did). of(String, String, Source) describes the prefix; apply(IdCodec, ZoneId, TimeSource, Optional) puts it before a codec.