public class UserVerify extends Object
Verify
but throws HumanReadableException
instead. Useful as a lightweight mechanism of verifying user-controlled
args/state/etc.Constructor and Description |
---|
UserVerify() |
Modifier and Type | Method and Description |
---|---|
static void |
checkArgument(boolean argument,
Object message)
Verifies that argument is true.
|
static void |
checkArgument(boolean argument,
String format,
Object... args)
Verifies that argument is true.
|
static void |
verify(boolean state,
Object message)
Verifies that state is true.
|
static void |
verify(boolean state,
String format,
Object... args)
Verifies that state is true.
|
static <T> T |
verifyNotNull(T value,
Object message)
Verifies that value is not null, returns the original object if it is not null.
|
static <T> T |
verifyNotNull(T value,
String format,
Object... args)
Verifies that value is not null, returns the original object if it is not null
|
public static <T> T verifyNotNull(@Nullable T value, Object message)
public static <T> T verifyNotNull(@Nullable T value, String format, Object... args)
public static void verify(boolean state, Object message)
public static void verify(boolean state, String format, Object... args)
public static void checkArgument(boolean argument, Object message)