@Generated(value={"Immutables.generator","MergingJunction<L, R, D>"}) public final class ImmutableMergingJunction<L,R,D> extends Object implements MergingJunction<L,R,D>
MergingJunction.
Use the builder to create immutable instances:
ImmutableMergingJunction.<L, R, D>builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMergingJunction.Builder<L,R,D>
Builds instances of type
ImmutableMergingJunction. |
Route.Transition<D>| Modifier and Type | Method and Description |
|---|---|
static <L,R,D> ImmutableMergingJunction.Builder<L,R,D> |
builder(NamedType<D> destination)
Creates a builder for
ImmutableMergingJunction. |
static <L,R,D> ImmutableMergingJunction<L,R,D> |
copyOf(MergingJunction<L,R,D> instance)
Creates an immutable copy of a
MergingJunction value. |
NamedType<D> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMergingJunction that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
left, right, destination. |
NamedType<L> |
left() |
NamedType<R> |
right() |
String |
toString()
Prints the immutable value
MergingJunction with attribute values. |
ImmutableMergingJunction<L,R,D> |
withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableMergingJunction<L,R,D> |
withLeft(NamedType<L> value)
Copy the current immutable object by setting a value for the
left attribute. |
ImmutableMergingJunction<L,R,D> |
withRight(NamedType<R> value)
Copy the current immutable object by setting a value for the
right attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, sourcespublic NamedType<L> left()
left in interface MergingJunction<L,R,D>left attributepublic NamedType<R> right()
right in interface MergingJunction<L,R,D>right attributepublic NamedType<D> destination()
destination in interface SingleDestination<D>destination attributepublic final ImmutableMergingJunction<L,R,D> withLeft(NamedType<L> value)
left attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for leftthis objectpublic final ImmutableMergingJunction<L,R,D> withRight(NamedType<R> value)
right attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for rightthis objectpublic final ImmutableMergingJunction<L,R,D> withDestination(NamedType<D> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic boolean equals(Object another)
ImmutableMergingJunction that have equal attribute values.public int hashCode()
left, right, destination.public String toString()
MergingJunction with attribute values.public static <L,R,D> ImmutableMergingJunction<L,R,D> copyOf(MergingJunction<L,R,D> instance)
MergingJunction value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.L - generic parameter LR - generic parameter RD - generic parameter Dinstance - The instance to copypublic static <L,R,D> ImmutableMergingJunction.Builder<L,R,D> builder(NamedType<D> destination)
ImmutableMergingJunction.L - generic parameter LR - generic parameter RD - generic parameter Ddestination - destination parameterCopyright © 2017. All rights reserved.