@Generated(value="org.immutables.processor.ProxyProcessor") 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, label. |
Optional<String> |
label() |
Line |
line() |
static ImmutableStart |
of(Line line)
Construct a new immutable
Start instance. |
String |
toString()
Prints the immutable value
Start with attribute values. |
ImmutableStart |
withLabel(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
label attribute. |
ImmutableStart |
withLabel(String value)
Copy the current immutable object by setting a present value for the optional
label attribute. |
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 final ImmutableStart withLabel(String value)
label attribute.value - The value for labelthis objectpublic final ImmutableStart withLabel(Optional<String> optional)
label attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for labelthis objectpublic boolean equals(Object another)
ImmutableStart that have equal attribute values.public int hashCode()
line, label.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.
ImmutableStart.builder()
.line(de.flapdoodle.testdoc.Line) // required line
.label(String) // optional label
.build();
Copyright © 2023. All rights reserved.