public class HikResult<T> extends Object
protected T
data
protected Integer
errorCode
protected String
errorMsg
protected boolean
success
HikResult()
static <T> HikResult<T>
fail(int code, String msg)
String
getError()
static HikResult<?>
ok()
ok(T data)
void
set(HikResult data)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected boolean success
protected Integer errorCode
protected String errorMsg
protected T data
public HikResult()
public static HikResult<?> ok()
public static <T> HikResult<T> ok(T data)
public static <T> HikResult<T> fail(int code, String msg)
public void set(HikResult data)
public String getError()
Copyright © 2020. All rights reserved.