Package org.bremersee.comparator.model
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSortOrdersTextProperties. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSortOrdersTextProperties.copyOf(SortOrdersTextProperties instance) Creates an immutable copy of aSortOrdersTextPropertiesvalue.booleanThis instance is equal to all instances ofImmutableSortOrdersTextPropertiesthat have equal attribute values.Gets asc value.Gets case insensitive value.Gets case sensitive value.Gets desc value.Gets null is first value.Gets null is last value.Gets sort order args separator.Gets sort order separator.inthashCode()Computes a hash code from attributes:sortOrderSeparator,sortOrderArgsSeparator,ascValue,descValue,caseInsensitiveValue,caseSensitiveValue,nullIsLastValue,nullIsFirstValue.toString()Prints the immutable valueSortOrdersTextPropertieswith attribute values.withAscValue(String value) Copy the current immutable object by setting a value for theascValueattribute.withCaseInsensitiveValue(String value) Copy the current immutable object by setting a value for thecaseInsensitiveValueattribute.withCaseSensitiveValue(String value) Copy the current immutable object by setting a value for thecaseSensitiveValueattribute.withDescValue(String value) Copy the current immutable object by setting a value for thedescValueattribute.withNullIsFirstValue(String value) Copy the current immutable object by setting a value for thenullIsFirstValueattribute.withNullIsLastValue(String value) Copy the current immutable object by setting a value for thenullIsLastValueattribute.withSortOrderArgsSeparator(String value) Copy the current immutable object by setting a value for thesortOrderArgsSeparatorattribute.withSortOrderSeparator(String value) Copy the current immutable object by setting a value for thesortOrderSeparatorattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bremersee.comparator.model.SortOrdersTextProperties
getDirectionValue, getIgnoreCaseValue, getNullIsFirstValue, isAsc, isCaseIgnored, isNullFirst
-
Method Details
-
getSortOrderSeparator
Gets sort order separator.- Specified by:
getSortOrderSeparatorin interfaceSortOrdersTextProperties- Returns:
- the sort order separator
-
getSortOrderArgsSeparator
Gets sort order args separator.- Specified by:
getSortOrderArgsSeparatorin interfaceSortOrdersTextProperties- Returns:
- the sort order args separator
-
getAscValue
Gets asc value.- Specified by:
getAscValuein interfaceSortOrdersTextProperties- Returns:
- the asc value
-
getDescValue
Gets desc value.- Specified by:
getDescValuein interfaceSortOrdersTextProperties- Returns:
- the desc value
-
getCaseInsensitiveValue
Gets case insensitive value.- Specified by:
getCaseInsensitiveValuein interfaceSortOrdersTextProperties- Returns:
- the case insensitive value
-
getCaseSensitiveValue
Gets case sensitive value.- Specified by:
getCaseSensitiveValuein interfaceSortOrdersTextProperties- Returns:
- the case sensitive value
-
getNullIsLastValue
Gets null is last value.- Specified by:
getNullIsLastValuein interfaceSortOrdersTextProperties- Returns:
- the null is last value
-
getNullIsFirstValue
Gets null is first value.- Specified by:
getNullIsFirstValuein interfaceSortOrdersTextProperties- Returns:
- the null is first value
-
withSortOrderSeparator
Copy the current immutable object by setting a value for thesortOrderSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sortOrderSeparator- Returns:
- A modified copy of the
thisobject
-
withSortOrderArgsSeparator
Copy the current immutable object by setting a value for thesortOrderArgsSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sortOrderArgsSeparator- Returns:
- A modified copy of the
thisobject
-
withAscValue
Copy the current immutable object by setting a value for theascValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ascValue- Returns:
- A modified copy of the
thisobject
-
withDescValue
Copy the current immutable object by setting a value for thedescValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for descValue- Returns:
- A modified copy of the
thisobject
-
withCaseInsensitiveValue
Copy the current immutable object by setting a value for thecaseInsensitiveValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for caseInsensitiveValue- Returns:
- A modified copy of the
thisobject
-
withCaseSensitiveValue
Copy the current immutable object by setting a value for thecaseSensitiveValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for caseSensitiveValue- Returns:
- A modified copy of the
thisobject
-
withNullIsLastValue
Copy the current immutable object by setting a value for thenullIsLastValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nullIsLastValue- Returns:
- A modified copy of the
thisobject
-
withNullIsFirstValue
Copy the current immutable object by setting a value for thenullIsFirstValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nullIsFirstValue- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableSortOrdersTextPropertiesthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:sortOrderSeparator,sortOrderArgsSeparator,ascValue,descValue,caseInsensitiveValue,caseSensitiveValue,nullIsLastValue,nullIsFirstValue. -
toString
Prints the immutable valueSortOrdersTextPropertieswith attribute values. -
copyOf
Creates an immutable copy of aSortOrdersTextPropertiesvalue. 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 forImmutableSortOrdersTextProperties.ImmutableSortOrdersTextProperties.builder() .sortOrderSeparator(String) // optionalsortOrderSeparator.sortOrderArgsSeparator(String) // optionalsortOrderArgsSeparator.ascValue(String) // optionalascValue.descValue(String) // optionaldescValue.caseInsensitiveValue(String) // optionalcaseInsensitiveValue.caseSensitiveValue(String) // optionalcaseSensitiveValue.nullIsLastValue(String) // optionalnullIsLastValue.nullIsFirstValue(String) // optionalnullIsFirstValue.build();- Returns:
- A new ImmutableSortOrdersTextProperties builder
-