public class OkResult<T> extends Object implements Serializable
| Constructor and Description |
|---|
OkResult(boolean b) |
OkResult(boolean b,
Exception e) |
OkResult(boolean b,
String message) |
OkResult(boolean b,
T value) |
| Modifier and Type | Method and Description |
|---|---|
static OkResult |
exception(Exception e) |
static OkResult |
fail() |
static <T> OkResult<T> |
fail(String value) |
Integer |
getInteger() |
Long |
getLong() |
T |
getResult() |
String |
getString() |
boolean |
isNotOk() |
OkResult<T> |
notOk() |
OkResult<T> |
notOk(Exception e) |
static <T> OkResult<T> |
ok(T value) |
public OkResult(boolean b)
public OkResult(boolean b,
T value)
public OkResult(boolean b,
String message)
public OkResult(boolean b,
Exception e)
Copyright © 2025. All rights reserved.