@Generated(value={"Immutables.generator","Start<D>"}) public final class ImmutableStart<D> extends Object implements Start<D>
Start.
Use the builder to create immutable instances:
ImmutableStart.<D>builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStart.Builder<D>
Builds instances of type
ImmutableStart. |
Route.Transition<D>| Modifier and Type | Method and Description |
|---|---|
static <D> ImmutableStart.Builder<D> |
builder(NamedType<D> destination)
Creates a builder for
ImmutableStart. |
static <D> ImmutableStart<D> |
copyOf(Start<D> instance)
Creates an immutable copy of a
Start value. |
NamedType<D> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStart that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination. |
String |
toString()
Prints the immutable value
Start with attribute values. |
ImmutableStart<D> |
withDestination(NamedType<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
public NamedType<D> destination()
destination in interface SingleDestination<D>destination attributepublic final ImmutableStart<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)
ImmutableStart that have equal attribute values.public int hashCode()
destination.public String toString()
Start with attribute values.public static <D> ImmutableStart<D> copyOf(Start<D> instance)
Start value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.D - generic parameter Dinstance - The instance to copypublic static <D> ImmutableStart.Builder<D> builder(NamedType<D> destination)
ImmutableStart.D - generic parameter Ddestination - destination parameterCopyright © 2017. All rights reserved.