T
- public final class Optional<T> extends Object
Modifier and Type | Method and Description |
---|---|
T |
get() |
T |
getIfNull(T alternate) |
void |
ifPresent(Consumer<T> consumer) |
boolean |
isPresent() |
static <T> Optional<T> |
of(T value) |
static <T> Optional<T> |
ofNullable(T value) |
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.