@Internal public class OptionalUtils extends Object
Optional
static <T> Optional<T>
firstPresent(Optional<T>... opts)
static <T> Stream<T>
stream(Optional<T> opt)
Stream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <T> Stream<T> stream(Optional<T> opt)
This is akin to Optional#stream available in JDK9+.
Optional#stream
@SafeVarargs public static <T> Optional<T> firstPresent(Optional<T>... opts)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.