Package org.bremersee.comparator.model
Class ImmutableSortOrderTextSeparators.Builder
java.lang.Object
org.bremersee.comparator.model.ImmutableSortOrderTextSeparators.Builder
- Enclosing class:
ImmutableSortOrderTextSeparators
@Generated(from="SortOrderTextSeparators",
generator="Immutables")
public static final class ImmutableSortOrderTextSeparators.Builder
extends Object
Builds instances of type
ImmutableSortOrderTextSeparators.
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 TypeMethodDescriptionargumentSeparator(String argumentSeparator) Initializes the value for theargumentSeparatorattribute.build()Builds a newImmutableSortOrderTextSeparators.chainSeparator(String chainSeparator) Initializes the value for thechainSeparatorattribute.from(SortOrderTextSeparators instance) Fill a builder with attribute values from the providedSortOrderTextSeparatorsinstance.
-
Method Details
-
from
Fill a builder with attribute values from the providedSortOrderTextSeparatorsinstance. 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
-
argumentSeparator
Initializes the value for theargumentSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
argumentSeparator.- Parameters:
argumentSeparator- The value for argumentSeparator- Returns:
thisbuilder for use in a chained invocation
-
chainSeparator
Initializes the value for thechainSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
chainSeparator.- Parameters:
chainSeparator- The value for chainSeparator- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableSortOrderTextSeparators.- Returns:
- An immutable instance of SortOrderTextSeparators
- Throws:
IllegalStateException- if any required attributes are missing
-