Class java.util.Optional
| Added Methods | |
|---|---|
void ifPresentOrElse(Consumer<?, |
|
boolean isEmpty() |
|
Optional<T> or(Supplier<Optional<? extends T>>) |
|
T orElseThrow() |
|
Stream<T> stream() |
|
| Changed Methods | ||
|---|---|---|
Optional<U> flatMap(Function<?, |
Change in signature from (Function<? super T, Optional<U>>) to (Function<? super T, Optional<? extends U>>). |
|
