@Generated(value={"Immutables.generator","Start"}) public final class ImmutableStart extends Object implements Start
Start.
Use the builder to create immutable instances:
ImmutableStart.builder().
Use the static factory method to create immutable instances:
ImmutableStart.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStart.Builder
Builds instances of type
ImmutableStart. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableStart.Builder |
builder()
Creates a builder for
ImmutableStart. |
static ImmutableStart |
copyOf(Start instance)
Creates an immutable copy of a
Start value. |
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:
line. |
Line |
line() |
static ImmutableStart |
of(Line line)
Construct a new immutable
Start instance. |
String |
toString()
Prints the immutable value
Start with attribute values. |
ImmutableStart |
withLine(Line value)
Copy the current immutable object by setting a value for the
line attribute. |
public Line line()
public final ImmutableStart withLine(Line value)
line attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for linethis objectpublic boolean equals(Object another)
ImmutableStart that have equal attribute values.public int hashCode()
line.public String toString()
Start with attribute values.public static ImmutableStart of(Line line)
Start instance.public static ImmutableStart copyOf(Start 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.instance - The instance to copypublic static ImmutableStart.Builder builder()
ImmutableStart.Copyright © 2017. All rights reserved.