@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRules extends Rules
Rules.
Use the static factory method to create immutable instances:
ImmutableRules.of().
| Modifier and Type | Method and Description |
|---|---|
CalculationMap |
calculations() |
static ImmutableRules |
copyOf(Rules instance)
Creates an immutable copy of a
Rules value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRules that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
calculations, validations. |
static ImmutableRules |
of(CalculationMap calculations,
ValidationMap validations)
Construct a new immutable
Rules instance. |
String |
toString()
Prints the immutable value
Rules with attribute values. |
ValidationMap |
validations() |
ImmutableRules |
withCalculations(CalculationMap value)
Copy the current immutable object by setting a value for the
calculations attribute. |
ImmutableRules |
withValidations(ValidationMap value)
Copy the current immutable object by setting a value for the
validations attribute. |
add, add, add, add, addCalculations, addValidations, emptypublic CalculationMap calculations()
calculations in class Rulescalculations attributepublic ValidationMap validations()
validations in class Rulesvalidations attributepublic final ImmutableRules withCalculations(CalculationMap value)
calculations attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for calculationsthis objectpublic final ImmutableRules withValidations(ValidationMap value)
validations attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for validationsthis objectpublic boolean equals(@Nullable Object another)
ImmutableRules that have equal attribute values.public int hashCode()
calculations, validations.public String toString()
Rules with attribute values.public static ImmutableRules of(CalculationMap calculations, ValidationMap validations)
Rules instance.calculations - The value for the calculations attributevalidations - The value for the validations attributepublic static ImmutableRules copyOf(Rules instance)
Rules value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2023. All rights reserved.