T - Type of the encapsulated field.public final class OptionalNullable<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionalNullable.Rfc1123DateTimeSerializer
A class to handle serialization of Rfc1123 format strings to DateTime objects.
|
static class |
OptionalNullable.Rfc8601DateTimeSerializer
A class to handle serialization of Rfc8601(Rfc3339) format strings to DateTime objects.
|
static class |
OptionalNullable.Serializer
JsonSerializer for the
OptionalNullable instance. |
static class |
OptionalNullable.SimpleDateSerializer
A class to handle serialization of LocalDate objects to date strings.
|
static class |
OptionalNullable.UnixTimestampSerializer
A class to handle serialization of Unix Timestamps to DateTime objects.
|
static class |
OptionalNullable.ZonedRfc1123DateTimeSerializer
A class to handle serialization of Rfc1123 format strings to DateTime objects.
|
static class |
OptionalNullable.ZonedRfc8601DateTimeSerializer
A class to handle serialization of Rfc8601(Rfc3339) format strings to DateTime objects.
|
static class |
OptionalNullable.ZonedUnixTimestampSerializer
A class to handle serialization of Unix Timestamps to DateTime objects.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static <T> T |
getFrom(OptionalNullable<T> optionalNullable)
Extracts the encapsulated value from the given OptionalNullable.
|
int |
hashCode() |
static <T> OptionalNullable<T> |
of(T value)
Creates an OptionalNullable instance with the provided value.
|
String |
toString()
Converts this OptionalNullable into string format.
|
public String toString()
public static <T> OptionalNullable<T> of(T value)
T - Type of the provided object.value - Value of the provided object.OptionalNullable instance encapsulating given value.public static <T> T getFrom(OptionalNullable<T> optionalNullable)
T - Type of the expected value.optionalNullable - OptionalNullable instance to get value.Copyright © 2025. All rights reserved.