@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCalculationMap extends CalculationMap
CalculationMap.
Use the builder to create immutable instances:
ImmutableCalculationMap.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCalculationMap.Builder
Builds instances of type
ImmutableCalculationMap. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Calculation<?>> |
all() |
static ImmutableCalculationMap.Builder |
builder()
Creates a builder for
ImmutableCalculationMap. |
static ImmutableCalculationMap |
copyOf(CalculationMap instance)
Creates an immutable copy of a
CalculationMap value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCalculationMap that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
all. |
Set<Value<?>> |
keys()
Returns a lazily initialized value of the
keys attribute. |
protected Map<Value<?>,Calculation<?>> |
map()
Returns a lazily initialized value of the
map attribute. |
String |
toString()
Prints the immutable value
CalculationMap with attribute values. |
ImmutableCalculationMap |
withAll(Calculation<?>... elements)
Copy the current immutable object with elements that replace the content of
all. |
ImmutableCalculationMap |
withAll(Iterable<? extends Calculation<?>> elements)
Copy the current immutable object with elements that replace the content of
all. |
public com.google.common.collect.ImmutableList<Calculation<?>> all()
all in class CalculationMapall attribute@SafeVarargs public final ImmutableCalculationMap withAll(Calculation<?>... elements)
all.elements - The elements to setthis objectpublic final ImmutableCalculationMap withAll(Iterable<? extends Calculation<?>> elements)
all.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of all elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableCalculationMap that have equal attribute values.public int hashCode()
all.public String toString()
CalculationMap with attribute values.protected Map<Value<?>,Calculation<?>> map()
Returns a lazily initialized value of the map attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
map in class CalculationMapmap attributepublic Set<Value<?>> keys()
Returns a lazily initialized value of the keys attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
keys in class CalculationMapkeys attributepublic static ImmutableCalculationMap copyOf(CalculationMap instance)
CalculationMap 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 copypublic static ImmutableCalculationMap.Builder builder()
ImmutableCalculationMap.
ImmutableCalculationMap.builder()
.addAll|addAllAll(de.flapdoodle.formula.calculate.Calculation<?>) // all elements
.build();
Copyright © 2023. All rights reserved.