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