Class ImmutableSortOrderTextSeparators

java.lang.Object
org.bremersee.comparator.model.ImmutableSortOrderTextSeparators
All Implemented Interfaces:
SortOrderTextSeparators

@Generated(from="SortOrderTextSeparators", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableSortOrderTextSeparators extends Object implements SortOrderTextSeparators
Immutable implementation of SortOrderTextSeparators.

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

  • Method Details

    • getArgumentSeparator

      public String getArgumentSeparator()
      Gets argument separator.
      Specified by:
      getArgumentSeparator in interface SortOrderTextSeparators
      Returns:
      the argument separator
    • getChainSeparator

      public String getChainSeparator()
      Gets chain separator.
      Specified by:
      getChainSeparator in interface SortOrderTextSeparators
      Returns:
      the chain separator
    • withArgumentSeparator

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

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

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableSortOrderTextSeparators 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: argumentSeparator, chainSeparator.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      Creates an immutable copy of a SortOrderTextSeparators 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 SortOrderTextSeparators instance
    • builder

      Creates a builder for ImmutableSortOrderTextSeparators.
       ImmutableSortOrderTextSeparators.builder()
          .argumentSeparator(String) // optional argumentSeparator
          .chainSeparator(String) // optional chainSeparator
          .build();
       
      Returns:
      A new ImmutableSortOrderTextSeparators builder