public class Returnee<R,T extends Throwable> extends Tuple2<R,T> implements Serializable, Tuple
| 限定符和类型 | 方法和说明 |
|---|---|
R |
get() |
T |
getThrowable() |
R |
getValue() |
static <R,T extends Throwable> |
of(R value,
T throwable) |
static <T> Returnee<Void,Throwable> |
of(ThrowableExecution executable) |
static <T> Returnee<T,Throwable> |
of(ThrowableSupplier<T> supplier) |
void |
setThrowable(T throwable) |
void |
setValue(R value) |
void |
throwOnThrowable() |
String |
toString() |
public static <T> Returnee<Void,Throwable> of(ThrowableExecution executable)
public static <T> Returnee<T,Throwable> of(ThrowableSupplier<T> supplier)
public R getValue()
public T getThrowable()
public void setValue(R value)
public void setThrowable(T throwable)
Copyright © 2025 fossc. All rights reserved.