public final class Produce<T,E> extends Object
Produce(Supplier<E> error)
Produce(T result)
E
getError()
T
getResult()
boolean
hasError()
hasResult()
void
ifPresent(Consumer<T> consumer)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Produce(T result)
public Produce(Supplier<E> error)
public void ifPresent(Consumer<T> consumer)
public boolean hasResult()
public boolean hasError()
@Nullable public E getError()
public T getResult()
Copyright © 2020. All rights reserved.