@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCalledMethod extends Object implements CalledMethod
CalledMethod.
Use the builder to create immutable instances:
ImmutableCalledMethod.builder().
Use the static factory method to create immutable instances:
ImmutableCalledMethod.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCalledMethod.Builder
Builds instances of type
ImmutableCalledMethod. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCalledMethod.Builder |
builder()
Creates a builder for
ImmutableCalledMethod. |
static ImmutableCalledMethod |
copyOf(CalledMethod instance)
Creates an immutable copy of a
CalledMethod value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCalledMethod that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
line. |
Line |
line() |
static ImmutableCalledMethod |
of(Line line)
Construct a new immutable
CalledMethod instance. |
String |
toString()
Prints the immutable value
CalledMethod with attribute values. |
ImmutableCalledMethod |
withLine(Line value)
Copy the current immutable object by setting a value for the
line attribute. |
public Line line()
line in interface CalledMethodline in interface HasLineline attributepublic final ImmutableCalledMethod 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)
ImmutableCalledMethod that have equal attribute values.public int hashCode()
line.public String toString()
CalledMethod with attribute values.public static ImmutableCalledMethod of(Line line)
CalledMethod instance.of in interface CalledMethodline - The value for the line attributepublic static ImmutableCalledMethod copyOf(CalledMethod instance)
CalledMethod 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 ImmutableCalledMethod.Builder builder()
ImmutableCalledMethod.
ImmutableCalledMethod.builder()
.line(de.flapdoodle.testdoc.Line) // required line
.build();
Copyright © 2022. All rights reserved.