@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableArrayValue extends Value.ArrayValue
Value.ArrayValue.
Use the builder to create immutable instances:
ImmutableArrayValue.builder().
Use the static factory method to create immutable instances:
ImmutableArrayValue.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableArrayValue.Builder
Builds instances of type
ImmutableArrayValue. |
Value.ArrayValue, Value.BooleanValue, Value.DateTimeValue, Value.DurationValue, Value.FailedWithException<T>, Value.MapValue, Value.NullValue, Value.NumberValue, Value.StringValue| Modifier and Type | Method and Description |
|---|---|
static ImmutableArrayValue.Builder |
builder()
Creates a builder for
ImmutableArrayValue. |
static ImmutableArrayValue |
copyOf(Value.ArrayValue instance)
Creates an immutable copy of a
Value.ArrayValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableArrayValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
wrapped. |
static ImmutableArrayValue |
of(Values wrapped)
Construct a new immutable
ArrayValue instance. |
ImmutableArrayValue |
withWrapped(Values value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
Values |
wrapped() |
public Values wrapped()
public final ImmutableArrayValue withWrapped(Values value)
wrapped attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for wrappedthis objectpublic boolean equals(Object another)
ImmutableArrayValue that have equal attribute values.public int hashCode()
wrapped.public static ImmutableArrayValue of(Values wrapped)
ArrayValue instance.wrapped - The value for the wrapped attributepublic static ImmutableArrayValue copyOf(Value.ArrayValue instance)
Value.ArrayValue 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 ImmutableArrayValue.Builder builder()
ImmutableArrayValue.
ImmutableArrayValue.builder()
.wrapped(de.flapdoodle.eval.example.Values) // required wrapped
.build();
Copyright © 2024. All rights reserved.