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 by DefaultStringToTypeConverter to convert string to date values.
decimalNumberFormatList - List of decimal formats used by DefaultStringToTypeConverter to convert string to decimal value.
booleanTrueRegexPattern - Regexp pattern that is used by DefaultStringToTypeConverter to match boolean true values.
booleanFalseRegexPattern - Regexp pattern that is used by DefaultStringToTypeConverter 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 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 a StringSearchProperties record class.
      Parameters:
      dateFormatList - the value for the dateFormatList record component
      decimalNumberFormatList - the value for the decimalNumberFormatList record component
      booleanTrueRegexPattern - the value for the booleanTrueRegexPattern record component
      booleanFalseRegexPattern - the value for the booleanFalseRegexPattern record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dateFormatList

      public List<String> dateFormatList()
      Returns the value of the dateFormatList record component.
      Returns:
      the value of the dateFormatList record component
    • decimalNumberFormatList

      public List<String> decimalNumberFormatList()
      Returns the value of the decimalNumberFormatList record component.
      Returns:
      the value of the decimalNumberFormatList record component
    • booleanTrueRegexPattern

      public String booleanTrueRegexPattern()
      Returns the value of the booleanTrueRegexPattern record component.
      Returns:
      the value of the booleanTrueRegexPattern record component
    • booleanFalseRegexPattern

      public String booleanFalseRegexPattern()
      Returns the value of the booleanFalseRegexPattern record component.
      Returns:
      the value of the booleanFalseRegexPattern record component