@NotThreadSafe public static final class ImmutableColumn.Builder extends Object
ImmutableColumn.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableColumn |
build()
Builds a new
ImmutableColumn. |
ImmutableColumn.Builder |
from(Column instance)
Fill a builder with attribute values from the provided
Column instance. |
ImmutableColumn.Builder |
kind(Column.Kind kind)
Initializes the value for the
kind attribute. |
ImmutableColumn.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableColumn.Builder |
order(Column.Order order)
Initializes the value for the
order attribute. |
ImmutableColumn.Builder |
type(String type)
Initializes the value for the
type attribute. |
@CanIgnoreReturnValue public final ImmutableColumn.Builder from(Column instance)
Column instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableColumn.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableColumn.Builder type(@Nullable String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableColumn.Builder kind(@Nullable Column.Kind kind)
kind attribute.kind - The value for kind (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableColumn.Builder order(@Nullable Column.Order order)
order attribute.order - The value for order (can be null)this builder for use in a chained invocationpublic ImmutableColumn build()
ImmutableColumn.IllegalStateException - if any required attributes are missingCopyright © 2022. All rights reserved.