Package org.bremersee.comparator.model
Class ImmutableWellKnownTextProperties
- java.lang.Object
-
- org.bremersee.comparator.model.ImmutableWellKnownTextProperties
-
- All Implemented Interfaces:
WellKnownTextProperties
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableWellKnownTextProperties extends Object implements WellKnownTextProperties
Immutable implementation ofWellKnownTextProperties.Use the builder to create immutable instances:
ImmutableWellKnownTextProperties.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableWellKnownTextProperties.BuilderBuilds instances of typeImmutableWellKnownTextProperties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableWellKnownTextProperties.Builderbuilder()Creates a builder forImmutableWellKnownTextProperties.static ImmutableWellKnownTextPropertiescopyOf(WellKnownTextProperties instance)Creates an immutable copy of aWellKnownTextPropertiesvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableWellKnownTextPropertiesthat have equal attribute values.StringgetAscValue()Gets asc value.StringgetCaseInsensitiveValue()Gets case insensitive value.StringgetCaseSensitiveValue()Gets case sensitive value.StringgetDescValue()Gets desc value.StringgetFieldArgsSeparator()Gets field args separator.StringgetFieldSeparator()Gets field separator.StringgetNullIsFirstValue()Gets null is first value.StringgetNullIsLastValue()Gets null is last value.inthashCode()Computes a hash code from attributes:fieldSeparator,fieldArgsSeparator,ascValue,descValue,caseInsensitiveValue,caseSensitiveValue,nullIsLastValue,nullIsFirstValue.StringtoString()Prints the immutable valueWellKnownTextPropertieswith attribute values.ImmutableWellKnownTextPropertieswithAscValue(String value)Copy the current immutable object by setting a value for theascValueattribute.ImmutableWellKnownTextPropertieswithCaseInsensitiveValue(String value)Copy the current immutable object by setting a value for thecaseInsensitiveValueattribute.ImmutableWellKnownTextPropertieswithCaseSensitiveValue(String value)Copy the current immutable object by setting a value for thecaseSensitiveValueattribute.ImmutableWellKnownTextPropertieswithDescValue(String value)Copy the current immutable object by setting a value for thedescValueattribute.ImmutableWellKnownTextPropertieswithFieldArgsSeparator(String value)Copy the current immutable object by setting a value for thefieldArgsSeparatorattribute.ImmutableWellKnownTextPropertieswithFieldSeparator(String value)Copy the current immutable object by setting a value for thefieldSeparatorattribute.ImmutableWellKnownTextPropertieswithNullIsFirstValue(String value)Copy the current immutable object by setting a value for thenullIsFirstValueattribute.ImmutableWellKnownTextPropertieswithNullIsLastValue(String value)Copy the current immutable object by setting a value for thenullIsLastValueattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bremersee.comparator.model.WellKnownTextProperties
getDirectionValue, getIgnoreCaseValue, getNullIsFirstValue, isAsc, isCaseIgnored, isNullFirst
-
-
-
-
Method Detail
-
getFieldSeparator
public String getFieldSeparator()
Gets field separator.- Specified by:
getFieldSeparatorin interfaceWellKnownTextProperties- Returns:
- the field separator
-
getFieldArgsSeparator
public String getFieldArgsSeparator()
Gets field args separator.- Specified by:
getFieldArgsSeparatorin interfaceWellKnownTextProperties- Returns:
- the field args separator
-
getAscValue
public String getAscValue()
Gets asc value.- Specified by:
getAscValuein interfaceWellKnownTextProperties- Returns:
- the asc value
-
getDescValue
public String getDescValue()
Gets desc value.- Specified by:
getDescValuein interfaceWellKnownTextProperties- Returns:
- the desc value
-
getCaseInsensitiveValue
public String getCaseInsensitiveValue()
Gets case insensitive value.- Specified by:
getCaseInsensitiveValuein interfaceWellKnownTextProperties- Returns:
- the case insensitive value
-
getCaseSensitiveValue
public String getCaseSensitiveValue()
Gets case sensitive value.- Specified by:
getCaseSensitiveValuein interfaceWellKnownTextProperties- Returns:
- the case sensitive value
-
getNullIsLastValue
public String getNullIsLastValue()
Gets null is last value.- Specified by:
getNullIsLastValuein interfaceWellKnownTextProperties- Returns:
- the null is last value
-
getNullIsFirstValue
public String getNullIsFirstValue()
Gets null is first value.- Specified by:
getNullIsFirstValuein interfaceWellKnownTextProperties- Returns:
- the null is first value
-
withFieldSeparator
public final ImmutableWellKnownTextProperties withFieldSeparator(String value)
Copy the current immutable object by setting a value for thefieldSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fieldSeparator- Returns:
- A modified copy of the
thisobject
-
withFieldArgsSeparator
public final ImmutableWellKnownTextProperties withFieldArgsSeparator(String value)
Copy the current immutable object by setting a value for thefieldArgsSeparatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fieldArgsSeparator- Returns:
- A modified copy of the
thisobject
-
withAscValue
public final ImmutableWellKnownTextProperties 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 ImmutableWellKnownTextProperties 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 ImmutableWellKnownTextProperties 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 ImmutableWellKnownTextProperties 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 ImmutableWellKnownTextProperties 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 ImmutableWellKnownTextProperties 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(Object another)
This instance is equal to all instances ofImmutableWellKnownTextPropertiesthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:fieldSeparator,fieldArgsSeparator,ascValue,descValue,caseInsensitiveValue,caseSensitiveValue,nullIsLastValue,nullIsFirstValue.
-
toString
public String toString()
Prints the immutable valueWellKnownTextPropertieswith attribute values.
-
copyOf
public static ImmutableWellKnownTextProperties copyOf(WellKnownTextProperties instance)
Creates an immutable copy of aWellKnownTextPropertiesvalue. 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 WellKnownTextProperties instance
-
builder
public static ImmutableWellKnownTextProperties.Builder builder()
Creates a builder forImmutableWellKnownTextProperties.ImmutableWellKnownTextProperties.builder() .fieldSeparator(String) // optionalfieldSeparator.fieldArgsSeparator(String) // optionalfieldArgsSeparator.ascValue(String) // optionalascValue.descValue(String) // optionaldescValue.caseInsensitiveValue(String) // optionalcaseInsensitiveValue.caseSensitiveValue(String) // optionalcaseSensitiveValue.nullIsLastValue(String) // optionalnullIsLastValue.nullIsFirstValue(String) // optionalnullIsFirstValue.build();- Returns:
- A new ImmutableWellKnownTextProperties builder
-
-