@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableNullValue extends Value.NullValue
Value.NullValue.
Use the builder to create immutable instances:
ImmutableNullValue.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableNullValue.Builder
Builds instances of type
ImmutableNullValue. |
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 ImmutableNullValue.Builder |
builder()
Creates a builder for
ImmutableNullValue. |
static ImmutableNullValue |
copyOf(Value.NullValue instance)
Creates an immutable copy of a
Value.NullValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableNullValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
wrapped. |
ImmutableNullValue |
withWrapped(Void value)
Copy the current immutable object by setting a value for the
wrapped attribute. |
Void |
wrapped() |
toStringpublic Void wrapped()
wrapped in class Value.NullValuewrapped attributepublic final ImmutableNullValue withWrapped(Void 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 wrapped (can be null)this objectpublic boolean equals(Object another)
ImmutableNullValue that have equal attribute values.public int hashCode()
wrapped.public static ImmutableNullValue copyOf(Value.NullValue instance)
Value.NullValue 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 ImmutableNullValue.Builder builder()
ImmutableNullValue.
ImmutableNullValue.builder()
.wrapped(Void | null) // nullable wrapped
.build();
Copyright © 2024. All rights reserved.