@Generated(value={"Immutables.generator","PartingWay<S, A, B>"}) public final class ImmutablePartingWay<S,A,B> extends Object implements PartingWay<S,A,B>
PartingWay.
Use the builder to create immutable instances:
ImmutablePartingWay.<S, A, B>builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePartingWay.Builder<S,A,B>
Builds instances of type
ImmutablePartingWay. |
Route.Transition<D>| Modifier and Type | Method and Description |
|---|---|
static <S,A,B> ImmutablePartingWay.Builder<S,A,B> |
builder()
Creates a builder for
ImmutablePartingWay. |
static <S,A,B> ImmutablePartingWay<S,A,B> |
copyOf(PartingWay<S,A,B> instance)
Creates an immutable copy of a
PartingWay value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePartingWay that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
start, oneDestination, otherDestination. |
NamedType<A> |
oneDestination() |
NamedType<B> |
otherDestination() |
NamedType<S> |
start() |
String |
toString()
Prints the immutable value
PartingWay with attribute values. |
ImmutablePartingWay<S,A,B> |
withOneDestination(NamedType<A> value)
Copy the current immutable object by setting a value for the
oneDestination attribute. |
ImmutablePartingWay<S,A,B> |
withOtherDestination(NamedType<B> value)
Copy the current immutable object by setting a value for the
otherDestination attribute. |
ImmutablePartingWay<S,A,B> |
withStart(NamedType<S> value)
Copy the current immutable object by setting a value for the
start attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, sourcespublic NamedType<A> oneDestination()
oneDestination in interface PartingWay<S,A,B>oneDestination attributepublic NamedType<B> otherDestination()
otherDestination in interface PartingWay<S,A,B>otherDestination attributepublic final ImmutablePartingWay<S,A,B> withStart(NamedType<S> value)
start attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for startthis objectpublic final ImmutablePartingWay<S,A,B> withOneDestination(NamedType<A> value)
oneDestination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for oneDestinationthis objectpublic final ImmutablePartingWay<S,A,B> withOtherDestination(NamedType<B> value)
otherDestination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for otherDestinationthis objectpublic boolean equals(Object another)
ImmutablePartingWay that have equal attribute values.public int hashCode()
start, oneDestination, otherDestination.public String toString()
PartingWay with attribute values.public static <S,A,B> ImmutablePartingWay<S,A,B> copyOf(PartingWay<S,A,B> instance)
PartingWay value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.S - generic parameter SA - generic parameter AB - generic parameter Binstance - The instance to copypublic static <S,A,B> ImmutablePartingWay.Builder<S,A,B> builder()
ImmutablePartingWay.S - generic parameter SA - generic parameter AB - generic parameter BCopyright © 2017. All rights reserved.