Class java.util.Optional
| Added Methods | |
|---|---|
| voidifPresentOrElse(Consumer<?, | |
| booleanisEmpty() | |
| Optional<T>or(Supplier<Optional<? extends T>>) | |
| TorElseThrow() | |
| 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>>). | |
