Class ImmutableSortOrdersTextProperties.Builder
- Enclosing class:
- ImmutableSortOrdersTextProperties
ImmutableSortOrdersTextProperties.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionInitializes the value for theascValueattribute.build()Builds a newImmutableSortOrdersTextProperties.caseInsensitiveValue(String caseInsensitiveValue) Initializes the value for thecaseInsensitiveValueattribute.caseSensitiveValue(String caseSensitiveValue) Initializes the value for thecaseSensitiveValueattribute.Initializes the value for thedescValueattribute.from(SortOrdersTextProperties instance) Fill a builder with attribute values from the providedSortOrdersTextPropertiesinstance.nullIsFirstValue(String nullIsFirstValue) Initializes the value for thenullIsFirstValueattribute.nullIsLastValue(String nullIsLastValue) Initializes the value for thenullIsLastValueattribute.sortOrderArgsSeparator(String sortOrderArgsSeparator) Initializes the value for thesortOrderArgsSeparatorattribute.sortOrderSeparator(String sortOrderSeparator) Initializes the value for thesortOrderSeparatorattribute.
-
Method Details
-
from
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
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
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
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
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
Builds a newImmutableSortOrdersTextProperties.- Returns:
- An immutable instance of SortOrdersTextProperties
- Throws:
IllegalStateException- if any required attributes are missing
-