public class InputValidateResult<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
errorMessage |
private T |
obj |
| Constructor and Description |
|---|
InputValidateResult() |
| Modifier and Type | Method and Description |
|---|---|
static <T> InputValidateResult<T> |
error(String errorMessage) |
String |
getErrorMessage() |
T |
getObj() |
static <T> InputValidateResult<T> |
wrap(T obj) |
public T getObj()
public String getErrorMessage()
public static <T> InputValidateResult<T> wrap(T obj)
public static <T> InputValidateResult<T> error(String errorMessage)
Copyright © 2020. All rights reserved.