This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static void | |
public static <T> T | |
public static <T> T | |
public static <T> T | checkNonNull(T t, Supplier<String> msg)
Equivalent to assert (o != null) : msg.get(); Note message string is computed lazily. |
public static void | |
public static void | |
public static void | |
public static void | |
public static Error | |
public static Error |
Assert | back to summary |
---|---|
private Assert() Prevent instantiation. |
check | back to summary |
---|---|
public static void check(boolean cond) Equivalent to assert cond; |
check | back to summary |
---|---|
public static void check(boolean cond, int value) Equivalent to assert cond : value; |
check | back to summary |
---|---|
public static void check(boolean cond, long value) Equivalent to assert cond : value; |
check | back to summary |
---|---|
public static void check(boolean cond, Object value) Equivalent to assert cond : value; |
check | back to summary |
---|---|
public static void check(boolean cond, String msg) Equivalent to assert cond : msg; |
check | back to summary |
---|---|
public static void check(boolean cond, Supplier<String> msg) Equivalent to assert cond : msg.get(); Note message string is computed lazily. |
checkNonNull | back to summary |
---|---|
public static <T> T checkNonNull(T t) Equivalent to assert (t != null); return t; |
checkNonNull | back to summary |
---|---|
public static <T> T checkNonNull(T t, String msg) Equivalent to assert (o != null) : msg; |
checkNonNull | back to summary |
---|---|
public static <T> T checkNonNull(T t, Supplier<String> msg) Equivalent to assert (o != null) : msg.get(); Note message string is computed lazily. |
checkNull | back to summary |
---|---|
public static void checkNull(Object o) Equivalent to assert (o == null); |
checkNull | back to summary |
---|---|
public static void checkNull(Object o, Object value) Equivalent to assert (o == null) : value; |
checkNull | back to summary |
---|---|
public static void checkNull(Object o, String msg) Equivalent to assert (o == null) : msg; |
checkNull | back to summary |
---|---|
public static void checkNull(Object o, Supplier<String> msg) Equivalent to assert (o == null) : msg.get(); Note message string is computed lazily. |
error | back to summary |
---|---|
public static Error error() Equivalent to assert false; |
error | back to summary |
---|---|
public static Error error(String msg) Equivalent to assert false : msg; |