public abstract class NullAbleOptional<T> extends Object
Modifier and Type | Field and Description |
---|---|
static NullAbleOptional |
EMPTY |
Constructor and Description |
---|
NullAbleOptional() |
Modifier and Type | Method and Description |
---|---|
static NullAbleOptional |
empty() |
abstract T |
get() |
abstract boolean |
isPresent() |
static <T> NullAbleOptional<T> |
of(T value) |
String |
toString() |
public static final NullAbleOptional EMPTY
public static NullAbleOptional empty()
public abstract boolean isPresent()
public static <T> NullAbleOptional<T> of(@Nullable T value)
Copyright © 2021 SPF4J. All rights reserved.