- All Known Implementing Classes:
GroupedCodecSpec.DatePrefix,GroupedCodecSpec.Instance,GroupedCodecSpec.ValueOnly
public sealed interface GroupedCodecSpec
permits GroupedCodecSpec.DatePrefix, GroupedCodecSpec.ValueOnly, GroupedCodecSpec.Instance
The codec of a
GeneratorSpec.PeriodicSegment generator. In configuration the codec list holds the period
item where the period key goes (or starts with the date-prefix item, the period first); the items before it
apply to the value, the items after it decorate the text that starts with the period key.
The variants are the current snapshot of a closed set of specs: a minor version may add a variant, so keep a
default branch in a switch over them (D40).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordGroupedCodec.datePrefix(me.ahoo.cosid.segment.Period, String, me.ahoo.cosid.codec.IdCodec, java.util.function.UnaryOperator): the period key, the delimiter, then the value;outerdecorates the whole, so with a prefix in it the period follows a business prefix (the 4.xgroup-prefix.before-prefix).static final recordA codec instance, for specs built in code.static final recordGroupedCodec.valueOnly(me.ahoo.cosid.codec.IdCodec): the text holds the value alone, without its period (the 4.xgroup-prefix.enabled = false); such text cannot be decoded.