public class ActionResult<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private T |
result |
private EnumActionResult |
type |
Constructor and Description |
---|
ActionResult(EnumActionResult typeIn,
T resultIn) |
Modifier and Type | Method and Description |
---|---|
T |
getResult() |
EnumActionResult |
getType() |
static <T> ActionResult<T> |
newResult(EnumActionResult result,
T value) |
private final EnumActionResult type
private final T result
public ActionResult(EnumActionResult typeIn, T resultIn)
public EnumActionResult getType()
public T getResult()
public static <T> ActionResult<T> newResult(EnumActionResult result, T value)