@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValueContainer extends ValueContainer
ValueContainer.
Use the builder to create immutable instances:
ImmutableValueContainer.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValueContainer.Builder
Builds instances of type
ImmutableValueContainer. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableValueContainer.Builder |
builder()
Creates a builder for
ImmutableValueContainer. |
static ImmutableValueContainer |
copyOf(ValueContainer instance)
Creates an immutable copy of a
ValueContainer value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValueContainer that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
values, nullValues. |
protected com.google.common.collect.ImmutableSet<Value<?>> |
nullValues() |
String |
toString()
Prints the immutable value
ValueContainer with attribute values. |
protected com.google.common.collect.ImmutableMap<Value<?>,Object> |
values() |
ImmutableValueContainer |
withNullValues(Iterable<? extends Value<?>> elements)
Copy the current immutable object with elements that replace the content of
nullValues. |
ImmutableValueContainer |
withNullValues(Value<?>... elements)
Copy the current immutable object with elements that replace the content of
nullValues. |
ImmutableValueContainer |
withValues(Map<? extends Value<?>,? extends Object> entries)
Copy the current immutable object by replacing the
values map with the specified map. |
add, empty, get, keysprotected com.google.common.collect.ImmutableMap<Value<?>,Object> values()
values in class ValueContainervalues attributeprotected com.google.common.collect.ImmutableSet<Value<?>> nullValues()
nullValues in class ValueContainernullValues attributepublic final ImmutableValueContainer withValues(Map<? extends Value<?>,? extends Object> entries)
values map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the values mapthis object@SafeVarargs public final ImmutableValueContainer withNullValues(Value<?>... elements)
nullValues.elements - The elements to setthis objectpublic final ImmutableValueContainer withNullValues(Iterable<? extends Value<?>> elements)
nullValues.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of nullValues elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableValueContainer that have equal attribute values.public int hashCode()
values, nullValues.public String toString()
ValueContainer with attribute values.public static ImmutableValueContainer copyOf(ValueContainer instance)
ValueContainer 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 ImmutableValueContainer.Builder builder()
ImmutableValueContainer.
ImmutableValueContainer.builder()
.putValues|putAllValues(de.flapdoodle.formula.Value<?> => Object) // values mappings
.addNullValues|addAllNullValues(de.flapdoodle.formula.Value<?>) // nullValues elements
.build();
Copyright © 2023. All rights reserved.