public static final class ImmutableMergingJunction.Builder<L,R,D> extends Object
ImmutableMergingJunction.
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 |
|---|---|
ImmutableMergingJunction<L,R,D> |
build()
Builds a new
ImmutableMergingJunction. |
ImmutableMergingJunction.Builder<L,R,D> |
from(MergingJunction<L,R,D> instance)
Fill a builder with attribute values from the provided
MergingJunction instance. |
ImmutableMergingJunction.Builder<L,R,D> |
left(NamedType<L> left)
Initializes the value for the
left attribute. |
ImmutableMergingJunction.Builder<L,R,D> |
right(NamedType<R> right)
Initializes the value for the
right attribute. |
public final ImmutableMergingJunction.Builder<L,R,D> from(MergingJunction<L,R,D> instance)
MergingJunction 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 invocationpublic final ImmutableMergingJunction.Builder<L,R,D> left(NamedType<L> left)
left attribute.left - The value for leftthis builder for use in a chained invocationpublic final ImmutableMergingJunction.Builder<L,R,D> right(NamedType<R> right)
right attribute.right - The value for rightthis builder for use in a chained invocationpublic ImmutableMergingJunction<L,R,D> build()
ImmutableMergingJunction.IllegalStateException - if any required attributes are missingCopyright © 2017. All rights reserved.