@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValueVertex<T> extends RuleVertex.ValueVertex<T>
RuleVertex.ValueVertex.
Use the builder to create immutable instances:
ImmutableValueVertex.builder().
Use the static factory method to create immutable instances:
ImmutableValueVertex.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValueVertex.Builder<T>
Builds instances of type
ImmutableValueVertex. |
RuleVertex.CalculationVertex<T>, RuleVertex.ValidationVertex<T>, RuleVertex.ValueVertex<T>| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableValueVertex.Builder<T> |
builder()
Creates a builder for
ImmutableValueVertex. |
static <T> ImmutableValueVertex<T> |
copyOf(RuleVertex.ValueVertex<T> instance)
Creates an immutable copy of a
RuleVertex.ValueVertex value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValueVertex that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
value. |
static <T> ImmutableValueVertex<T> |
of(Value<T> value)
Construct a new immutable
ValueVertex instance. |
String |
toString()
Prints the immutable value
ValueVertex with attribute values. |
Value<T> |
value() |
ImmutableValueVertex<T> |
withValue(Value<T> value)
Copy the current immutable object by setting a value for the
value attribute. |
asHumanReadablecalculation, validation, valueclone, finalize, getClass, notify, notifyAll, wait, wait, waitasHumanReadablepublic Value<T> value()
value in class RuleVertex.ValueVertex<T>value attributepublic final ImmutableValueVertex<T> withValue(Value<T> value)
value attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(@Nullable Object another)
ImmutableValueVertex that have equal attribute values.public int hashCode()
value.public String toString()
ValueVertex with attribute values.public static <T> ImmutableValueVertex<T> of(Value<T> value)
ValueVertex instance.T - generic parameter Tvalue - The value for the value attributepublic static <T> ImmutableValueVertex<T> copyOf(RuleVertex.ValueVertex<T> instance)
RuleVertex.ValueVertex value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableValueVertex.Builder<T> builder()
ImmutableValueVertex.
ImmutableValueVertex.<T>builder()
.value(de.flapdoodle.formula.Value<T>) // required value
.build();
T - generic parameter TCopyright © 2023. All rights reserved.