java.lang.Object
java.lang.Record
me.ahoo.cosid.runtime.CodecSpec.DatePrefix
- Record Components:
pattern- the date patterndelimiter- the text between the date and the idsource- where the date comes fromzone- the time zone of the date
- All Implemented Interfaces:
CodecSpec
- Enclosing interface:
CodecSpec
public static record CodecSpec.DatePrefix(String pattern, String delimiter, DatePrefix.Source source, ZoneId zone)
extends Record
implements CodecSpec
me.ahoo.cosid.codec.DatePrefix.-
Nested Class Summary
Nested classes/interfaces inherited from interface me.ahoo.cosid.runtime.CodecSpec
CodecSpec.Custom, CodecSpec.DatePrefix, CodecSpec.Friendly, CodecSpec.Instance, CodecSpec.Prefix, CodecSpec.Radix, CodecSpec.Suffix -
Constructor Summary
ConstructorsConstructorDescriptionDatePrefix(String pattern, String delimiter, DatePrefix.Source source, ZoneId zone) 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.pattern()Returns the value of thepatternrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-