static <T> T |
Assert.assertHoldsLock(T monitor) |
Assert that the given monitor is held by the current thread.
|
static <T> T |
Assert.assertNotHoldsLock(T monitor) |
Assert that the given monitor is not held by the current thread.
|
static <T> T |
Assert.assertNotNull(T value) |
Assert that the value is not null .
|
static boolean[] |
Assert.checkNotEmptyParam(java.lang.String name,
boolean[] value) |
Check that the named parameter is not empty.
|
static byte[] |
Assert.checkNotEmptyParam(java.lang.String name,
byte[] value) |
Check that the named parameter is not empty.
|
static double[] |
Assert.checkNotEmptyParam(java.lang.String name,
double[] value) |
Check that the named parameter is not empty.
|
static float[] |
Assert.checkNotEmptyParam(java.lang.String name,
float[] value) |
Check that the named parameter is not empty.
|
static int[] |
Assert.checkNotEmptyParam(java.lang.String name,
int[] value) |
Check that the named parameter is not empty.
|
static long[] |
Assert.checkNotEmptyParam(java.lang.String name,
long[] value) |
Check that the named parameter is not empty.
|
static short[] |
Assert.checkNotEmptyParam(java.lang.String name,
short[] value) |
Check that the named parameter is not empty.
|
static java.lang.CharSequence |
Assert.checkNotEmptyParam(java.lang.String name,
java.lang.CharSequence value) |
Check that the named parameter is not empty.
|
static java.lang.String |
Assert.checkNotEmptyParam(java.lang.String name,
java.lang.String value) |
Check that the named parameter is not empty.
|
static <E,T extends java.util.Collection<E>> T |
Assert.checkNotEmptyParam(java.lang.String name,
T value) |
Check that the named parameter is not empty.
|
static <K,V,T extends java.util.Map<K,V>> T |
Assert.checkNotEmptyParam(java.lang.String name,
T value) |
Check that the named parameter is not empty.
|
static <T> T[] |
Assert.checkNotEmptyParam(java.lang.String name,
T[] value) |
Check that the named parameter is not empty.
|
static <T> T |
Assert.checkNotNullArrayParam(java.lang.String name,
int index,
T value) |
Check that a value within the named array parameter is not null .
|
static <T> T |
Assert.checkNotNullParam(java.lang.String name,
T value) |
Check that the named parameter is not null .
|
static <T> T |
Assert.checkNotNullParamWithNullPointerException(java.lang.String name,
T value) |
Check that the named parameter is not null , using a NullPointerException as some specifications
require.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(int val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(long val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(java.lang.Object obj) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.UnsupportedOperationException |
Assert.unsupported() |
Return an exception explaining that the caller's method is not supported.
|