Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
firstPresent(Optional<T>... opts)
Returns the first
Optional which is present. |
static <T> java.util.stream.Stream<T> |
stream(Optional<T> opt)
|
public static <T> java.util.stream.Stream<T> stream(Optional<T> opt)
@SafeVarargs public static <T> Optional<T> firstPresent(Optional<T>... opts)
Optional
which is present.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.