T - Type of the encapsulated field.public class OptionalNullable<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionalNullable.Serializer
JsonSerializer for the
OptionalNullable instance. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getFrom(OptionalNullable<T> optionalNullable)
Extracts the encapsulated value from the given OptionalNullable.
|
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 © 2022. All rights reserved.