Package org.bremersee.comparator.model
Class ImmutableSortOrdersTextProperties
- java.lang.Object
-
- org.bremersee.comparator.model.ImmutableSortOrdersTextProperties
-
- All Implemented Interfaces:
SortOrdersTextProperties
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableSortOrdersTextProperties extends Object implements SortOrdersTextProperties
Immutable implementation ofSortOrdersTextProperties.Use the builder to create immutable instances:
ImmutableSortOrdersTextProperties.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSortOrdersTextProperties.BuilderBuilds instances of typeImmutableSortOrdersTextProperties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSortOrdersTextProperties.Builderbuilder()Creates a builder forImmutableSortOrdersTextProperties.static ImmutableSortOrdersTextPropertiescopyOf(SortOrdersTextProperties instance)Creates an immutable copy of aSortOrdersTextPropertiesvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableSortOrdersTextPropertiesthat have equal attribute values.StringgetAscValue()Gets asc value.StringgetCaseInsensitiveValue()Gets case insensitive value.StringgetCaseSensitiveValue()Gets case sensitive value.StringgetDescValue()Gets desc value.StringgetNullIsFirstValue()Gets null is first value.StringgetNullIsLastValue()Gets null is last value.StringgetSortOrderArgsSeparator()Gets sort order args separator.StringgetSortOrderSeparator()Gets sort order separator.inthashCode()Computes a hash code from attributes:sortOrderSeparator,sortOrderArgsSeparator,ascValue,descValue,caseInsensitiveValue,caseSensitiveValue,nullIsLastValue,nullIsFirstValue.StringtoString()Prints the immutable valueSortOrdersTextPropertieswith attribute values.ImmutableSortOrdersTextPropertieswithAscValue(String value)Copy the current immutable object by setting a value for theascValueattribute.ImmutableSortOrdersTextPropertieswithCaseInsensitiveValue(String value)Copy the current immutable object by setting a value for thecaseInsensitiveValueattribute.ImmutableSortOrdersTextPropertieswithCaseSensitiveValue(String value)Copy the current immutable object by setting a value for thecaseSensitiveValueattribute.ImmutableSortOrdersTextPropertieswithDescValue(String value)Copy the current immutable object by setting a value for thedescValueattribute.ImmutableSortOrdersTextPropertieswithNullIsFirstValue(String value)Copy the current immutable object by setting a value for thenullIsFirstValueattribute.ImmutableSortOrdersTextPropertieswithNullIsLastValue(String value)Copy the current immutable object by setting a value for thenullIsLastValueattribute.ImmutableSortOrdersTextPropertieswithSortOrderArgsSeparator(String value)Copy the current immutable object by setting a value for thesortOrderArgsSeparatorattribute.ImmutableSortOrdersTextPropertieswithSortOrderSeparator(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, wait
-
Methods inherited from interface org.bremersee.comparator.model.SortOrdersTextProperties
getDirectionValue, getIgnoreCaseValue, getNullIsFirstValue, isAsc, isCaseIgnored, isNullFirst
-
-
-
-
Method Detail
-
getSortOrderSeparator
public String getSortOrderSeparator()
Gets sort order separator.- Specified by:
getSortOrderSeparatorin interfaceSortOrdersTextProperties- Returns:
- the sort order separator
-
getSortOrderArgsSeparator
public String getSortOrderArgsSeparator()
Gets sort order args separator.- Specified by:
getSortOrderArgsSeparatorin interfaceSortOrdersTextProperties- Returns:
- the sort order args separator
-
getAscValue
public String getAscValue()
Gets asc value.- Specified by:
getAscValuein interfaceSortOrdersTextProperties- Returns:
- the asc value
-
getDescValue
public String getDescValue()
Gets desc value.- Specified by:
getDescValuein interfaceSortOrdersTextProperties- Returns:
- the desc value
-
getCaseInsensitiveValue
public String getCaseInsensitiveValue()
Gets case insensitive value.- Specified by:
getCaseInsensitiveValuein interfaceSortOrdersTextProperties- Returns:
- the case insensitive value
-
getCaseSensitiveValue
public String getCaseSensitiveValue()
Gets case sensitive value.- Specified by:
getCaseSensitiveValuein interfaceSortOrdersTextProperties- Returns:
- the case sensitive value
-
getNullIsLastValue
public String getNullIsLastValue()
Gets null is last value.- Specified by:
getNullIsLastValuein interfaceSortOrdersTextProperties- Returns:
- the null is last value
-
getNullIsFirstValue
public String getNullIsFirstValue()
Gets null is first value.- Specified by:
getNullIsFirstValuein interfaceSortOrdersTextProperties- Returns:
- the null is first value
-
withSortOrderSeparator
public final ImmutableSortOrdersTextProperties withSortOrderSeparator(String value)
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
public final ImmutableSortOrdersTextProperties withSortOrderArgsSeparator(String value)
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
public final ImmutableSortOrdersTextProperties withAscValue(String value)
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
public final ImmutableSortOrdersTextProperties withDescValue(String value)
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
public final ImmutableSortOrdersTextProperties withCaseInsensitiveValue(String value)
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
public final ImmutableSortOrdersTextProperties withCaseSensitiveValue(String value)
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
public final ImmutableSortOrdersTextProperties withNullIsLastValue(String value)
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
public final ImmutableSortOrdersTextProperties withNullIsFirstValue(String value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueSortOrdersTextPropertieswith attribute values.
-
copyOf
public static ImmutableSortOrdersTextProperties copyOf(SortOrdersTextProperties instance)
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
public static ImmutableSortOrdersTextProperties.Builder 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
-
-