Record Class CosIdProperties.DatePrefix
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.DatePrefix
- Record Components:
pattern- the date pattern; defaultyyyyMMdd(unused in a periodic segment, whose period gives it)delimiter- the text between the date and the id; default-source-ID_TIME(default) orNOWzone- the time zone; default the system zone
- Enclosing class:
CosIdProperties
public static record CosIdProperties.DatePrefix(String pattern, String delimiter, me.ahoo.cosid.codec.DatePrefix.Source source, ZoneId zone)
extends Record
A date prefix.
-
Constructor Summary
ConstructorsConstructorDescriptionDatePrefix(String pattern, String delimiter, me.ahoo.cosid.codec.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.me.ahoo.cosid.codec.DatePrefix.Sourcesource()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
public me.ahoo.cosid.codec.DatePrefix.Source 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
-