Module me.ahoo.cosid.core
Package me.ahoo.cosid.runtime
Record Class GroupedCodecSpec.FormattedDatePrefix
java.lang.Object
java.lang.Record
me.ahoo.cosid.runtime.GroupedCodecSpec.FormattedDatePrefix
- Record Components:
pattern- the date pattern of the key in the text, such asyyMMdddelimiter- 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.FormattedDatePrefix(String pattern, String delimiter, List<CodecSpec> value, List<CodecSpec> outer)
extends Record
implements GroupedCodecSpec
GroupedCodec.datePrefix(me.ahoo.cosid.segment.Period, String, String, me.ahoo.cosid.codec.IdCodec, java.util.function.UnaryOperator): GroupedCodecSpec.DatePrefix with the period key written in pattern, such as
yyMMdd (the 4.x group.pattern); the period keys themselves, and so the store keys, keep the
preset's pattern. For a preset period only.-
Nested Class Summary
Nested classes/interfaces inherited from interface me.ahoo.cosid.runtime.GroupedCodecSpec
GroupedCodecSpec.DatePrefix, GroupedCodecSpec.FormattedDatePrefix, GroupedCodecSpec.Instance, GroupedCodecSpec.ValueOnly -
Constructor Summary
ConstructorsConstructorDescriptionFormattedDatePrefix(String pattern, String delimiter, List<CodecSpec> value) The period first: the period key inpattern, the delimiter, then the value.Creates an instance of aFormattedDatePrefixrecord 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.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
FormattedDatePrefix
public FormattedDatePrefix(String pattern, String delimiter, List<CodecSpec> value, List<CodecSpec> outer) Creates an instance of aFormattedDatePrefixrecord class. -
FormattedDatePrefix
The period first: the period key inpattern, the delimiter, then the value.- Parameters:
pattern- the date pattern of the key in the text, such asyyMMdddelimiter- 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). -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
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
-