java.lang.Object
java.lang.Record
me.ahoo.cosid.runtime.GroupedCodecSpec.DatePrefix
- Record Components:
delimiter- the text between the period and the valuevalue- the codec list of the value, applied in orderouter- the decorations of the text that starts with the period key (prefixes, suffixes, date prefixes), applied in order; empty puts the period first
- All Implemented Interfaces:
GroupedCodecSpec
- Enclosing interface:
GroupedCodecSpec
public static record GroupedCodecSpec.DatePrefix(String delimiter, List<CodecSpec> value, List<CodecSpec> outer)
extends Record
implements GroupedCodecSpec
GroupedCodec.datePrefix(me.ahoo.cosid.segment.Period, String, me.ahoo.cosid.codec.IdCodec, java.util.function.UnaryOperator): the period key, the delimiter, then the value; outer decorates the
whole, so with a prefix in it the period follows a business prefix (the 4.x group-prefix.before-prefix).-
Nested Class Summary
Nested classes/interfaces inherited from interface me.ahoo.cosid.runtime.GroupedCodecSpec
GroupedCodecSpec.DatePrefix, GroupedCodecSpec.Instance, GroupedCodecSpec.ValueOnly -
Constructor Summary
ConstructorsConstructorDescriptionDatePrefix(String delimiter, List<CodecSpec> value) The period first: the period key, the delimiter, then the value.Creates an instance of aDatePrefixrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelimiterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outer()Returns the value of theouterrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
DatePrefix
Creates an instance of aDatePrefixrecord class. -
DatePrefix
The period first: the period key, the delimiter, then the value.- Parameters:
delimiter- the text between the period and the valuevalue- the codec list of the value, applied in order
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
delimiter
Returns the value of thedelimiterrecord component.- Returns:
- the value of the
delimiterrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
outer
Returns the value of theouterrecord component.- Returns:
- the value of the
outerrecord component
-