@Generated(value={"Immutables.generator","End"}) public final class ImmutableEnd extends Object implements End
End.
Use the builder to create immutable instances:
ImmutableEnd.builder().
Use the static factory method to create immutable instances:
ImmutableEnd.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableEnd.Builder
Builds instances of type
ImmutableEnd. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableEnd.Builder |
builder()
Creates a builder for
ImmutableEnd. |
static ImmutableEnd |
copyOf(End instance)
Creates an immutable copy of a
End value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableEnd that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
line. |
Line |
line() |
static ImmutableEnd |
of(Line line)
Construct a new immutable
End instance. |
String |
toString()
Prints the immutable value
End with attribute values. |
ImmutableEnd |
withLine(Line value)
Copy the current immutable object by setting a value for the
line attribute. |
public Line line()
public final ImmutableEnd 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)
ImmutableEnd that have equal attribute values.public int hashCode()
line.public String toString()
End with attribute values.public static ImmutableEnd of(Line line)
End instance.public static ImmutableEnd copyOf(End instance)
End 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 ImmutableEnd.Builder builder()
ImmutableEnd.Copyright © 2017. All rights reserved.