@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableTransitionMapping<D> extends TransitionMapping<D>
TransitionMapping.
Use the builder to create immutable instances:
ImmutableTransitionMapping.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTransitionMapping.Builder<D>
Builds instances of type
ImmutableTransitionMapping. |
| Modifier and Type | Method and Description |
|---|---|
static <D> ImmutableTransitionMapping.Builder<D> |
builder(String label,
StateMapping<D> destination)
Creates a builder for
ImmutableTransitionMapping. |
static <D> ImmutableTransitionMapping<D> |
copyOf(TransitionMapping<D> instance)
Creates an immutable copy of a
TransitionMapping value. |
StateMapping<D> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTransitionMapping that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
label, destination, mappings. |
String |
label() |
List<StateMapping<?>> |
mappings() |
String |
toString()
Prints the immutable value
TransitionMapping with attribute values. |
ImmutableTransitionMapping<D> |
withDestination(StateMapping<D> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableTransitionMapping<D> |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableTransitionMapping<D> |
withMappings(Iterable<? extends StateMapping<?>> elements)
Copy the current immutable object with elements that replace the content of
mappings. |
ImmutableTransitionMapping<D> |
withMappings(StateMapping<?>... elements)
Copy the current immutable object with elements that replace the content of
mappings. |
builder, destinationOf, findDestinationOf, findSourceOf, sourceOfpublic String label()
label in class TransitionMapping<D>label attributepublic StateMapping<D> destination()
destination in class TransitionMapping<D>destination attributepublic List<StateMapping<?>> mappings()
mappings in class TransitionMapping<D>mappings attributepublic final ImmutableTransitionMapping<D> withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic final ImmutableTransitionMapping<D> withDestination(StateMapping<D> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis object@SafeVarargs public final ImmutableTransitionMapping<D> withMappings(StateMapping<?>... elements)
mappings.elements - The elements to setthis objectpublic final ImmutableTransitionMapping<D> withMappings(Iterable<? extends StateMapping<?>> elements)
mappings.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of mappings elements to setthis objectpublic boolean equals(Object another)
ImmutableTransitionMapping that have equal attribute values.public int hashCode()
label, destination, mappings.public String toString()
TransitionMapping with attribute values.public static <D> ImmutableTransitionMapping<D> copyOf(TransitionMapping<D> instance)
TransitionMapping value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.D - generic parameter Dinstance - The instance to copypublic static <D> ImmutableTransitionMapping.Builder<D> builder(String label, StateMapping<D> destination)
ImmutableTransitionMapping.
ImmutableTransitionMapping.<D>builder()
.label(String) // required label
.destination(de.flapdoodle.reverse.StateMapping<D>) // required destination
.addMappings|addAllMappings(de.flapdoodle.reverse.StateMapping<?>) // mappings elements
.build();
D - generic parameter Dlabel - label parameterdestination - destination parameterCopyright © 2025. All rights reserved.