Class ImmutableSortOrdersTextProperties

java.lang.Object
org.bremersee.comparator.model.ImmutableSortOrdersTextProperties
All Implemented Interfaces:
SortOrdersTextProperties

@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableSortOrdersTextProperties extends Object implements SortOrdersTextProperties
Immutable implementation of SortOrdersTextProperties.

Use the builder to create immutable instances: ImmutableSortOrdersTextProperties.builder().

  • Method Details

    • getSortOrderSeparator

      public String getSortOrderSeparator()
      Gets sort order separator.
      Specified by:
      getSortOrderSeparator in interface SortOrdersTextProperties
      Returns:
      the sort order separator
    • getSortOrderArgsSeparator

      public String getSortOrderArgsSeparator()
      Gets sort order args separator.
      Specified by:
      getSortOrderArgsSeparator in interface SortOrdersTextProperties
      Returns:
      the sort order args separator
    • getAscValue

      public String getAscValue()
      Gets asc value.
      Specified by:
      getAscValue in interface SortOrdersTextProperties
      Returns:
      the asc value
    • getDescValue

      public String getDescValue()
      Gets desc value.
      Specified by:
      getDescValue in interface SortOrdersTextProperties
      Returns:
      the desc value
    • getCaseInsensitiveValue

      public String getCaseInsensitiveValue()
      Gets case insensitive value.
      Specified by:
      getCaseInsensitiveValue in interface SortOrdersTextProperties
      Returns:
      the case insensitive value
    • getCaseSensitiveValue

      public String getCaseSensitiveValue()
      Gets case sensitive value.
      Specified by:
      getCaseSensitiveValue in interface SortOrdersTextProperties
      Returns:
      the case sensitive value
    • getNullIsLastValue

      public String getNullIsLastValue()
      Gets null is last value.
      Specified by:
      getNullIsLastValue in interface SortOrdersTextProperties
      Returns:
      the null is last value
    • getNullIsFirstValue

      public String getNullIsFirstValue()
      Gets null is first value.
      Specified by:
      getNullIsFirstValue in interface SortOrdersTextProperties
      Returns:
      the null is first value
    • withSortOrderSeparator

      public final ImmutableSortOrdersTextProperties withSortOrderSeparator(String value)
      Copy the current immutable object by setting a value for the sortOrderSeparator attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sortOrderSeparator
      Returns:
      A modified copy of the this object
    • withSortOrderArgsSeparator

      public final ImmutableSortOrdersTextProperties withSortOrderArgsSeparator(String value)
      Copy the current immutable object by setting a value for the sortOrderArgsSeparator attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sortOrderArgsSeparator
      Returns:
      A modified copy of the this object
    • withAscValue

      public final ImmutableSortOrdersTextProperties withAscValue(String value)
      Copy the current immutable object by setting a value for the ascValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ascValue
      Returns:
      A modified copy of the this object
    • withDescValue

      public final ImmutableSortOrdersTextProperties withDescValue(String value)
      Copy the current immutable object by setting a value for the descValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for descValue
      Returns:
      A modified copy of the this object
    • withCaseInsensitiveValue

      public final ImmutableSortOrdersTextProperties withCaseInsensitiveValue(String value)
      Copy the current immutable object by setting a value for the caseInsensitiveValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for caseInsensitiveValue
      Returns:
      A modified copy of the this object
    • withCaseSensitiveValue

      public final ImmutableSortOrdersTextProperties withCaseSensitiveValue(String value)
      Copy the current immutable object by setting a value for the caseSensitiveValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for caseSensitiveValue
      Returns:
      A modified copy of the this object
    • withNullIsLastValue

      public final ImmutableSortOrdersTextProperties withNullIsLastValue(String value)
      Copy the current immutable object by setting a value for the nullIsLastValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for nullIsLastValue
      Returns:
      A modified copy of the this object
    • withNullIsFirstValue

      public final ImmutableSortOrdersTextProperties withNullIsFirstValue(String value)
      Copy the current immutable object by setting a value for the nullIsFirstValue attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for nullIsFirstValue
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableSortOrdersTextProperties that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: sortOrderSeparator, sortOrderArgsSeparator, ascValue, descValue, caseInsensitiveValue, caseSensitiveValue, nullIsLastValue, nullIsFirstValue.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SortOrdersTextProperties with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a SortOrdersTextProperties value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable SortOrdersTextProperties instance
    • builder

      Creates a builder for ImmutableSortOrdersTextProperties.
       ImmutableSortOrdersTextProperties.builder()
          .sortOrderSeparator(String) // optional sortOrderSeparator
          .sortOrderArgsSeparator(String) // optional sortOrderArgsSeparator
          .ascValue(String) // optional ascValue
          .descValue(String) // optional descValue
          .caseInsensitiveValue(String) // optional caseInsensitiveValue
          .caseSensitiveValue(String) // optional caseSensitiveValue
          .nullIsLastValue(String) // optional nullIsLastValue
          .nullIsFirstValue(String) // optional nullIsFirstValue
          .build();
       
      Returns:
      A new ImmutableSortOrdersTextProperties builder