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