public class OptionalUtil extends Object
OptionalUtil()
static <T,E extends Exception>Optional<T>
ifEmpty(Optional<T> o, RunnableThrow<E> r)
ifPresent(Optional<T> o, ConsumerThrow<T,E> r)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OptionalUtil()
public static <T,E extends Exception> Optional<T> ifEmpty(Optional<T> o, RunnableThrow<E> r) throws E extends Exception
E extends Exception
public static <T,E extends Exception> Optional<T> ifPresent(Optional<T> o, ConsumerThrow<T,E> r) throws E extends Exception
Copyright © 2017. All rights reserved.