@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableValues extends Values
Values.
Use the builder to create immutable instances:
ImmutableValues.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValues.Builder
Builds instances of type
ImmutableValues. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableValues.Builder |
builder()
Creates a builder for
ImmutableValues. |
static ImmutableValues |
copyOf(Values instance)
Creates an immutable copy of a
Values value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValues that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
values. |
String |
toString()
Prints the immutable value
Values with attribute values. |
protected List<Value<?>> |
values() |
ImmutableValues |
withValues(Iterable<? extends Value<?>> elements)
Copy the current immutable object with elements that replace the content of
values. |
ImmutableValues |
withValues(Value<?>... elements)
Copy the current immutable object with elements that replace the content of
values. |
@SafeVarargs public final ImmutableValues withValues(Value<?>... elements)
values.elements - The elements to setthis objectpublic final ImmutableValues withValues(Iterable<? extends Value<?>> elements)
values.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of values elements to setthis objectpublic boolean equals(Object another)
ImmutableValues that have equal attribute values.public int hashCode()
values.public String toString()
Values with attribute values.public static ImmutableValues copyOf(Values instance)
Values 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 ImmutableValues.Builder builder()
ImmutableValues.
ImmutableValues.builder()
.addValues|addAllValues(de.flapdoodle.eval.example.Value<?>) // values elements
.build();
Copyright © 2024. All rights reserved.