Class ImmutableSortOrdersTextProperties.Builder
- java.lang.Object
-
- org.bremersee.comparator.model.ImmutableSortOrdersTextProperties.Builder
-
- Enclosing class:
- ImmutableSortOrdersTextProperties
@NotThreadSafe public static final class ImmutableSortOrdersTextProperties.Builder extends Object
Builds instances of typeImmutableSortOrdersTextProperties. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final ImmutableSortOrdersTextProperties.Builder from(SortOrdersTextProperties instance)
Fill a builder with attribute values from the providedSortOrdersTextPropertiesinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
sortOrderSeparator
public final ImmutableSortOrdersTextProperties.Builder sortOrderSeparator(String sortOrderSeparator)
Initializes the value for thesortOrderSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
sortOrderSeparator.- Parameters:
sortOrderSeparator- The value for sortOrderSeparator- Returns:
thisbuilder for use in a chained invocation
-
sortOrderArgsSeparator
public final ImmutableSortOrdersTextProperties.Builder sortOrderArgsSeparator(String sortOrderArgsSeparator)
Initializes the value for thesortOrderArgsSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
sortOrderArgsSeparator.- Parameters:
sortOrderArgsSeparator- The value for sortOrderArgsSeparator- Returns:
thisbuilder for use in a chained invocation
-
ascValue
public final ImmutableSortOrdersTextProperties.Builder ascValue(String ascValue)
Initializes the value for theascValueattribute.If not set, this attribute will have a default value as returned by the initializer of
ascValue.- Parameters:
ascValue- The value for ascValue- Returns:
thisbuilder for use in a chained invocation
-
descValue
public final ImmutableSortOrdersTextProperties.Builder descValue(String descValue)
Initializes the value for thedescValueattribute.If not set, this attribute will have a default value as returned by the initializer of
descValue.- Parameters:
descValue- The value for descValue- Returns:
thisbuilder for use in a chained invocation
-
caseInsensitiveValue
public final ImmutableSortOrdersTextProperties.Builder caseInsensitiveValue(String caseInsensitiveValue)
Initializes the value for thecaseInsensitiveValueattribute.If not set, this attribute will have a default value as returned by the initializer of
caseInsensitiveValue.- Parameters:
caseInsensitiveValue- The value for caseInsensitiveValue- Returns:
thisbuilder for use in a chained invocation
-
caseSensitiveValue
public final ImmutableSortOrdersTextProperties.Builder caseSensitiveValue(String caseSensitiveValue)
Initializes the value for thecaseSensitiveValueattribute.If not set, this attribute will have a default value as returned by the initializer of
caseSensitiveValue.- Parameters:
caseSensitiveValue- The value for caseSensitiveValue- Returns:
thisbuilder for use in a chained invocation
-
nullIsLastValue
public final ImmutableSortOrdersTextProperties.Builder nullIsLastValue(String nullIsLastValue)
Initializes the value for thenullIsLastValueattribute.If not set, this attribute will have a default value as returned by the initializer of
nullIsLastValue.- Parameters:
nullIsLastValue- The value for nullIsLastValue- Returns:
thisbuilder for use in a chained invocation
-
nullIsFirstValue
public final ImmutableSortOrdersTextProperties.Builder nullIsFirstValue(String nullIsFirstValue)
Initializes the value for thenullIsFirstValueattribute.If not set, this attribute will have a default value as returned by the initializer of
nullIsFirstValue.- Parameters:
nullIsFirstValue- The value for nullIsFirstValue- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableSortOrdersTextProperties build()
Builds a newImmutableSortOrdersTextProperties.- Returns:
- An immutable instance of SortOrdersTextProperties
- Throws:
IllegalStateException- if any required attributes are missing
-
-