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