Package org.bremersee.comparator.model
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSortOrderTextSeparators. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSortOrderTextSeparators.copyOf(SortOrderTextSeparators instance) Creates an immutable copy of aSortOrderTextSeparatorsvalue.booleanThis instance is equal to all instances ofImmutableSortOrderTextSeparatorsthat have equal attribute values.Gets argument separator.Gets chain separator.inthashCode()Computes a hash code from attributes:argumentSeparator,chainSeparator.toString()Prints the immutable valueSortOrderTextSeparatorswith attribute values.withArgumentSeparator(String value) Copy the current immutable object by setting a value for theargumentSeparatorattribute.withChainSeparator(String value) Copy the current immutable object by setting a value for thechainSeparatorattribute.
-
Method Details
-
getArgumentSeparator
Gets argument separator.- Specified by:
getArgumentSeparatorin interfaceSortOrderTextSeparators- Returns:
- the argument separator
-
getChainSeparator
Gets chain separator.- Specified by:
getChainSeparatorin interfaceSortOrderTextSeparators- Returns:
- the chain separator
-
withArgumentSeparator
Copy the current immutable object by setting a value for theargumentSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for argumentSeparator- Returns:
- A modified copy or the
thisobject
-
withChainSeparator
Copy the current immutable object by setting a value for thechainSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for chainSeparator- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableSortOrderTextSeparatorsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:argumentSeparator,chainSeparator. -
toString
Prints the immutable valueSortOrderTextSeparatorswith attribute values. -
copyOf
Creates an immutable copy of aSortOrderTextSeparatorsvalue. 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 forImmutableSortOrderTextSeparators.ImmutableSortOrderTextSeparators.builder() .argumentSeparator(String) // optionalargumentSeparator.chainSeparator(String) // optionalchainSeparator.build();- Returns:
- A new ImmutableSortOrderTextSeparators builder
-