Package com.suse.salt.netapi.results
Class Result<R>
- java.lang.Object
-
- com.suse.salt.netapi.results.Result<R>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume(Consumer<? super SaltError> consumerError, Consumer<? super R> consumerResult)
boolean
equals(Object obj)
Optional<SaltError>
error()
static <T> Result<T>
error(SaltError e)
<T> Result<T>
flatMap(Function<? super R,Result<T>> mapper)
<T> T
fold(Function<? super SaltError,? extends T> mapError, Function<? super R,? extends T> mapResult)
<T> Result<T>
map(Function<? super R,? extends T> mapper)
Optional<R>
result()
static <T> Result<T>
success(T r)
String
toString()
Xor<SaltError,R>
toXor()
-