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