public class TypedActionResult<T> extends Object
Modifier and Type | Field and Description |
---|---|
private ActionResult |
result |
private T |
value |
Constructor and Description |
---|
TypedActionResult(ActionResult result,
T value) |
Modifier and Type | Method and Description |
---|---|
static <T> TypedActionResult<T> |
consume(T data) |
static <T> TypedActionResult<T> |
fail(T data) |
ActionResult |
getResult() |
T |
getValue() |
static <T> TypedActionResult<T> |
pass(T data) |
static <T> TypedActionResult<T> |
success(T data) |
static <T> TypedActionResult<T> |
success(T data,
boolean swingHand) |
private final ActionResult result
private final T value
public TypedActionResult(ActionResult result, T value)
public ActionResult getResult()
public T getValue()
public static <T> TypedActionResult<T> success(T data)
public static <T> TypedActionResult<T> consume(T data)
public static <T> TypedActionResult<T> pass(T data)
public static <T> TypedActionResult<T> fail(T data)
public static <T> TypedActionResult<T> success(T data, boolean swingHand)