@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValidationVertex<T> extends RuleVertex.ValidationVertex<T>
RuleVertex.ValidationVertex.
Use the builder to create immutable instances:
ImmutableValidationVertex.builder().
Use the static factory method to create immutable instances:
ImmutableValidationVertex.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValidationVertex.Builder<T>
Builds instances of type
ImmutableValidationVertex. |
RuleVertex.CalculationVertex<T>, RuleVertex.ValidationVertex<T>, RuleVertex.ValueVertex<T>| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableValidationVertex.Builder<T> |
builder()
Creates a builder for
ImmutableValidationVertex. |
Validation<T> |
calculation() |
static <T> ImmutableValidationVertex<T> |
copyOf(RuleVertex.ValidationVertex<T> instance)
Creates an immutable copy of a
RuleVertex.ValidationVertex value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValidationVertex that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
calculation. |
static <T> ImmutableValidationVertex<T> |
of(Validation<T> calculation)
Construct a new immutable
ValidationVertex instance. |
String |
toString()
Prints the immutable value
ValidationVertex with attribute values. |
ImmutableValidationVertex<T> |
withCalculation(Validation<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 Validation<T> calculation()
calculation in class RuleVertex.ValidationVertex<T>calculation attributepublic final ImmutableValidationVertex<T> withCalculation(Validation<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)
ImmutableValidationVertex that have equal attribute values.public int hashCode()
calculation.public String toString()
ValidationVertex with attribute values.public static <T> ImmutableValidationVertex<T> of(Validation<T> calculation)
ValidationVertex instance.T - generic parameter Tcalculation - The value for the calculation attributepublic static <T> ImmutableValidationVertex<T> copyOf(RuleVertex.ValidationVertex<T> instance)
RuleVertex.ValidationVertex 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> ImmutableValidationVertex.Builder<T> builder()
ImmutableValidationVertex.
ImmutableValidationVertex.<T>builder()
.calculation(de.flapdoodle.formula.validation.Validation<T>) // required calculation
.build();
T - generic parameter TCopyright © 2023. All rights reserved.