@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableStateVertex extends StateVertex
StateVertex.
Use the builder to create immutable instances:
ImmutableStateVertex.builder().
Use the static factory method to create immutable instances:
ImmutableStateVertex.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableStateVertex.Builder
Builds instances of type
ImmutableStateVertex. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableStateVertex.Builder |
builder()
Creates a builder for
ImmutableStateVertex. |
static ImmutableStateVertex |
copyOf(StateVertex instance)
Creates an immutable copy of a
StateVertex value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableStateVertex that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
stateId. |
static ImmutableStateVertex |
of(StateID<?> stateId)
Construct a new immutable
StateVertex instance. |
StateID<?> |
stateId() |
String |
toString()
Prints the immutable value
StateVertex with attribute values. |
ImmutableStateVertex |
withStateId(StateID<?> value)
Copy the current immutable object by setting a value for the
stateId attribute. |
public StateID<?> stateId()
stateId in class StateVertexstateId attributepublic final ImmutableStateVertex withStateId(StateID<?> value)
stateId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for stateIdthis objectpublic boolean equals(Object another)
ImmutableStateVertex that have equal attribute values.public int hashCode()
stateId.public String toString()
StateVertex with attribute values.public static ImmutableStateVertex of(StateID<?> stateId)
StateVertex instance.stateId - The value for the stateId attributepublic static ImmutableStateVertex copyOf(StateVertex instance)
StateVertex 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 ImmutableStateVertex.Builder builder()
ImmutableStateVertex.
ImmutableStateVertex.builder()
.stateId(de.flapdoodle.reverse.StateID<?>) // required stateId
.build();
Copyright © 2023. All rights reserved.