Class ImmutableWellKnownTextProperties.Builder
- java.lang.Object
-
- org.bremersee.comparator.model.ImmutableWellKnownTextProperties.Builder
-
- Enclosing class:
- ImmutableWellKnownTextProperties
public static final class ImmutableWellKnownTextProperties.Builder extends Object
Builds instances of typeImmutableWellKnownTextProperties. 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 ImmutableWellKnownTextProperties.Builder from(WellKnownTextProperties instance)
Fill a builder with attribute values from the providedWellKnownTextPropertiesinstance. 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
-
fieldSeparator
public final ImmutableWellKnownTextProperties.Builder fieldSeparator(String fieldSeparator)
Initializes the value for thefieldSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
fieldSeparator.- Parameters:
fieldSeparator- The value for fieldSeparator- Returns:
thisbuilder for use in a chained invocation
-
fieldArgsSeparator
public final ImmutableWellKnownTextProperties.Builder fieldArgsSeparator(String fieldArgsSeparator)
Initializes the value for thefieldArgsSeparatorattribute.If not set, this attribute will have a default value as returned by the initializer of
fieldArgsSeparator.- Parameters:
fieldArgsSeparator- The value for fieldArgsSeparator- Returns:
thisbuilder for use in a chained invocation
-
ascValue
public final ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties.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 ImmutableWellKnownTextProperties build()
Builds a newImmutableWellKnownTextProperties.- Returns:
- An immutable instance of WellKnownTextProperties
- Throws:
IllegalStateException- if any required attributes are missing
-
-