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(String name,
boolean[] value) |
Check that the named parameter is not empty.
|
static byte[] |
Assert.checkNotEmptyParam(String name,
byte[] value) |
Check that the named parameter is not empty.
|
static double[] |
Assert.checkNotEmptyParam(String name,
double[] value) |
Check that the named parameter is not empty.
|
static float[] |
Assert.checkNotEmptyParam(String name,
float[] value) |
Check that the named parameter is not empty.
|
static int[] |
Assert.checkNotEmptyParam(String name,
int[] value) |
Check that the named parameter is not empty.
|
static long[] |
Assert.checkNotEmptyParam(String name,
long[] value) |
Check that the named parameter is not empty.
|
static short[] |
Assert.checkNotEmptyParam(String name,
short[] value) |
Check that the named parameter is not empty.
|
static CharSequence |
Assert.checkNotEmptyParam(String name,
CharSequence value) |
Check that the named parameter is not empty.
|
static String |
Assert.checkNotEmptyParam(String name,
String value) |
Check that the named parameter is not empty.
|
static <E,T extends Collection<E>> T |
Assert.checkNotEmptyParam(String name,
T value) |
Check that the named parameter is not empty.
|
static <K,V,T extends Map<K,V>> T |
Assert.checkNotEmptyParam(String name,
T value) |
Check that the named parameter is not empty.
|
static <T> T[] |
Assert.checkNotEmptyParam(String name,
T[] value) |
Check that the named parameter is not empty.
|
static <T> T |
Assert.checkNotNullArrayParam(String name,
int index,
T value) |
Check that a value within the named array parameter is not null.
|
static <T> T |
Assert.checkNotNullParam(String name,
T value) |
Check that the named parameter is not null.
|
static IllegalStateException |
Assert.impossibleSwitchCase(char val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static IllegalStateException |
Assert.impossibleSwitchCase(int val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static IllegalStateException |
Assert.impossibleSwitchCase(long val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static IllegalStateException |
Assert.impossibleSwitchCase(Object obj) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static UnsupportedOperationException |
Assert.unsupported() |
Return an exception explaining that the caller's method is not supported.
|