public class Nullable<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Nullable<T> |
empty() |
boolean |
equals(java.lang.Object obj) |
T |
get() |
int |
hashCode() |
boolean |
isPresent() |
static <T> Nullable<T> |
nullValue() |
static <T> Nullable<T> |
of(T value) |
static <T> Nullable<T> |
ofNullable(T value) |
public static <T> Nullable<T> empty()
public static <T> Nullable<T> of(T value)
public static <T> Nullable<T> ofNullable(T value)
public static <T> Nullable<T> nullValue()
public boolean isPresent()
public T get()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object