@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableValidationMap extends ValidationMap
ValidationMap.
Use the builder to create immutable instances:
ImmutableValidationMap.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValidationMap.Builder
Builds instances of type
ImmutableValidationMap. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Validation<?>> |
all() |
static ImmutableValidationMap.Builder |
builder()
Creates a builder for
ImmutableValidationMap. |
static ImmutableValidationMap |
copyOf(ValidationMap instance)
Creates an immutable copy of a
ValidationMap value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValidationMap 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<?>,Validation<?>> |
map()
Returns a lazily initialized value of the
map attribute. |
String |
toString()
Prints the immutable value
ValidationMap with attribute values. |
ImmutableValidationMap |
withAll(Iterable<? extends Validation<?>> elements)
Copy the current immutable object with elements that replace the content of
all. |
ImmutableValidationMap |
withAll(Validation<?>... elements)
Copy the current immutable object with elements that replace the content of
all. |
public com.google.common.collect.ImmutableList<Validation<?>> all()
all in class ValidationMapall attribute@SafeVarargs public final ImmutableValidationMap withAll(Validation<?>... elements)
all.elements - The elements to setthis objectpublic final ImmutableValidationMap withAll(Iterable<? extends Validation<?>> 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)
ImmutableValidationMap that have equal attribute values.public int hashCode()
all.public String toString()
ValidationMap with attribute values.protected Map<Value<?>,Validation<?>> 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 ValidationMapmap 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 ValidationMapkeys attributepublic static ImmutableValidationMap copyOf(ValidationMap instance)
ValidationMap 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 ImmutableValidationMap.Builder builder()
ImmutableValidationMap.
ImmutableValidationMap.builder()
.addAll|addAllAll(de.flapdoodle.formula.validation.Validation<?>) // all elements
.build();
Copyright © 2023. All rights reserved.