public class Results<T> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Results<T> |
errConflict() |
static <T> Results<T> |
errConflict(T data) |
static <T> Results<T> |
errConflict(T data,
String msg) |
static <T> Results<T> |
errConflictNoData(String msg) |
static <T> Results<T> |
errInternalServer() |
static <T> Results<T> |
errInternalServer(T data) |
static <T> Results<T> |
errInternalServer(T data,
String msg) |
static <T> Results<T> |
errInternalServerNoData(String msg) |
static <T> Results<T> |
errNotFound() |
static <T> Results<T> |
errNotFound(T data) |
static <T> Results<T> |
errNotFound(T data,
String msg) |
static <T> Results<T> |
errNotFoundNoData(String msg) |
static Results |
error(Code code) |
static <T> Results<T> |
error(Code code,
Object error) |
static <T> Results<T> |
error(Code c,
String msg,
Object error) |
static <T> Results<T> |
error(Code c,
String msg,
T data,
Object error) |
static Results |
exception(Code code) |
static <T> Results<T> |
exception(Code c,
String msg,
T data) |
static <T> Results<T> |
exception(Code code,
T data) |
static <T> Results<T> |
failure() |
static <T> Results<T> |
failure(T data) |
static <T> Results<T> |
failure(T data,
String msg) |
static <T> Results<T> |
failureNoData(String msg) |
boolean |
ifSuccess() |
static <T> Results<T> |
success() |
static <T> Results<T> |
success(T data) |
static <T> Results<String> |
successJsonData(T data) |
public static <T> Results<T> success(T data)
public static <T> Results<T> success()
public static <T> Results<T> failure(T data)
public static <T> Results<T> failure()
public static <T> Results<T> errNotFound(T data)
public static <T> Results<T> errNotFound()
public static <T> Results<T> errConflict(T data)
public static <T> Results<T> errConflict()
public static <T> Results<T> errInternalServer(T data)
public static <T> Results<T> errInternalServer()
public boolean ifSuccess()
Copyright © 2022. All rights reserved.