public static final class ImmutableStateVertex.Builder extends Object
ImmutableStateVertex.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableStateVertex |
build()
Builds a new
ImmutableStateVertex. |
ImmutableStateVertex.Builder |
from(StateVertex instance)
Fill a builder with attribute values from the provided
StateVertex instance. |
ImmutableStateVertex.Builder |
stateId(StateID<?> stateId)
Initializes the value for the
stateId attribute. |
public final ImmutableStateVertex.Builder from(StateVertex instance)
StateVertex instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableStateVertex.Builder stateId(StateID<?> stateId)
stateId attribute.stateId - The value for stateIdthis builder for use in a chained invocationpublic ImmutableStateVertex build()
ImmutableStateVertex.IllegalStateException - if any required attributes are missingCopyright © 2025. All rights reserved.