Package fr.becpg.config.format
Record Class PropertyFormats.FormatConfig
java.lang.Object
java.lang.Record
fr.becpg.config.format.PropertyFormats.FormatConfig
- Enclosing class:
- PropertyFormats
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormatConfig(String pattern, Locale locale, boolean useDefaultLocale) Creates an instance of aFormatConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseDefaultLocalerecord component.
-
Field Details
-
pattern
The field for thepatternrecord component. -
locale
The field for thelocalerecord component. -
useDefaultLocale
private final boolean useDefaultLocaleThe field for theuseDefaultLocalerecord component.
-
-
Constructor Details
-
FormatConfig
Creates an instance of aFormatConfigrecord class.- Parameters:
pattern- the value for thepatternrecord componentlocale- the value for thelocalerecord componentuseDefaultLocale- the value for theuseDefaultLocalerecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
useDefaultLocale
public boolean useDefaultLocale()Returns the value of theuseDefaultLocalerecord component.- Returns:
- the value of the
useDefaultLocalerecord component
-