Record Class NrichSearchProperties.StringSearchProperties
java.lang.Object
java.lang.Record
net.croz.nrich.search.starter.properties.NrichSearchProperties.StringSearchProperties
- Record Components:
dateFormatList
- List of date formats used byDefaultStringToTypeConverter
to convert string to date values.decimalNumberFormatList
- List of decimal formats used byDefaultStringToTypeConverter
to convert string to decimal value.booleanTrueRegexPattern
- Regexp pattern that is used byDefaultStringToTypeConverter
to match boolean true values.booleanFalseRegexPattern
- Regexp pattern that is used byDefaultStringToTypeConverter
to match boolean false values.
- Enclosing class:
- NrichSearchProperties
public static record NrichSearchProperties.StringSearchProperties(@DefaultValue({"dd.MM.yyyy.","dd.MM.yyyy.\'T\'HH:mm","dd.MM.yyyy.\'T\'HH:mm\'Z\'"}) List<String> dateFormatList, @DefaultValue({"#0.00","#0,00"}) List<String> decimalNumberFormatList, @DefaultValue("^(?i)\\s*(true|yes|da)\\s*$") String booleanTrueRegexPattern, @DefaultValue("^(?i)\\s*(false|no|ne)\\s*$") String booleanFalseRegexPattern)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebooleanFalseRegexPattern
record component.Returns the value of thebooleanTrueRegexPattern
record component.Returns the value of thedateFormatList
record component.Returns the value of thedecimalNumberFormatList
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StringSearchProperties
public StringSearchProperties(@DefaultValue({"dd.MM.yyyy.","dd.MM.yyyy.\'T\'HH:mm","dd.MM.yyyy.\'T\'HH:mm\'Z\'"}) List<String> dateFormatList, @DefaultValue({"#0.00","#0,00"}) List<String> decimalNumberFormatList, @DefaultValue("^(?i)\\s*(true|yes|da)\\s*$") String booleanTrueRegexPattern, @DefaultValue("^(?i)\\s*(false|no|ne)\\s*$") String booleanFalseRegexPattern) Creates an instance of aStringSearchProperties
record class.- Parameters:
dateFormatList
- the value for thedateFormatList
record componentdecimalNumberFormatList
- the value for thedecimalNumberFormatList
record componentbooleanTrueRegexPattern
- the value for thebooleanTrueRegexPattern
record componentbooleanFalseRegexPattern
- the value for thebooleanFalseRegexPattern
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
dateFormatList
Returns the value of thedateFormatList
record component.- Returns:
- the value of the
dateFormatList
record component
-
decimalNumberFormatList
Returns the value of thedecimalNumberFormatList
record component.- Returns:
- the value of the
decimalNumberFormatList
record component
-
booleanTrueRegexPattern
Returns the value of thebooleanTrueRegexPattern
record component.- Returns:
- the value of the
booleanTrueRegexPattern
record component
-
booleanFalseRegexPattern
Returns the value of thebooleanFalseRegexPattern
record component.- Returns:
- the value of the
booleanFalseRegexPattern
record component
-