| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: the boolean expressionthe boolean expression expr)Assert that the given expression is always |
| public static < the monitor's type T> T | Returns: the value that was passed inthe monitor object monitor)Assert that the given monitor is held by the current thread. |
| public static < the monitor's type T> T | Returns: the value that was passed inthe monitor object monitor)Assert that the given monitor is not held by the current thread. |
| public static < the value type T> T | Returns: the value that was passed inthe not- value)null valueAssert that the value is not |
| public static boolean | Returns: the boolean expressionthe boolean expression expr)Assert that the given expression is always |
| public static void | checkArrayBounds(final Object[]
the array to check array, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array. |
| public static void | checkArrayBounds(final byte[]
the array to check array, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array. |
| public static void | checkArrayBounds(final char[]
the array to check array, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array. |
| public static void | checkArrayBounds(final int[]
the array to check array, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array. |
| public static void | checkArrayBounds(final long[]
the array to check array, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array. |
| public static void | checkArrayBounds(final int
the array length to check against arrayLength, final int the array offset offs, final int the array length len)Check that the given offset and length fall completely within the bounds of the given array length. |
| public static void | checkMaximumParameter(String
the parameter name name, int the maximum value max, int the actual parameter value actual)Check that the named parameter is less than or equal to |
| public static void | checkMaximumParameter(String
the parameter name name, long the maximum value max, long the actual parameter value actual)Check that the named parameter is less than or equal to |
| public static void | checkMaximumParameter(String
the parameter name name, float the maximum value max, float the actual parameter value actual)Check that the named parameter is less than or equal to |
| public static void | checkMaximumParameter(String
the parameter name name, double the maximum value max, double the actual parameter value actual)Check that the named parameter is less than or equal to |
| public static void | checkMinimumParameter(String
the parameter name name, int the minimum value min, int the actual parameter value actual)Check that the named parameter is greater than or equal to |
| public static void | checkMinimumParameter(String
the parameter name name, long the minimum value min, long the actual parameter value actual)Check that the named parameter is greater than or equal to |
| public static void | checkMinimumParameter(String
the parameter name name, float the minimum value min, float the actual parameter value actual)Check that the named parameter is greater than or equal to |
| public static void | checkMinimumParameter(String
the parameter name name, double the minimum value min, double the actual parameter value actual)Check that the named parameter is greater than or equal to |
| public static String | Returns: the value that was passed inthe parameter name name, String the parameter value value)Check that the named parameter is not empty. |
| public static CharSequence | Returns: the value that was passed inthe parameter name name, CharSequence the parameter value value)Check that the named parameter is not empty. |
| public static <E, T extends Collection | Returns: the value that was passed inthe parameter name name, T the parameter value value)Check that the named parameter is not empty. |
| public static <K, V, T extends Map | Returns: the value that was passed inthe parameter name name, T the parameter value value)Check that the named parameter is not empty. |
| public static <T> T[] | Returns: the value that was passed inthe parameter name name, T[] the parameter value value)Check that the named parameter is not empty. |
| public static boolean[] | Returns: the value that was passed inthe parameter name name, boolean[] the parameter value value)Check that the named parameter is not empty. |
| public static byte[] | Returns: the value that was passed inthe parameter name name, byte[] the parameter value value)Check that the named parameter is not empty. |
| public static short[] | Returns: the value that was passed inthe parameter name name, short[] the parameter value value)Check that the named parameter is not empty. |
| public static int[] | Returns: the value that was passed inthe parameter name name, int[] the parameter value value)Check that the named parameter is not empty. |
| public static long[] | Returns: the value that was passed inthe parameter name name, long[] the parameter value value)Check that the named parameter is not empty. |
| public static float[] | Returns: the value that was passed inthe parameter name name, float[] the parameter value value)Check that the named parameter is not empty. |
| public static double[] | Returns: the value that was passed inthe parameter name name, double[] the parameter value value)Check that the named parameter is not empty. |
| public static < the element value type T> T | Returns: the array element value that was passed inthe parameter name name, int the array index index, T the array element value value)Check that a value within the named array parameter is not |
| public static < the value type T> T | Returns: the value that was passed inthe parameter name name, T the parameter value value)Check that the named parameter is not |
| private static <T> void | |
| public static < the value type T> T | Returns: the value that was passed inthe parameter name name, T the parameter value value)Check that the named parameter is not |
| public static IllegalStateException | Returns: the exception which may be immediately thrownthe switch case value obj)Return an exception indicating that the current switch case was intended to be unreachable. |
| public static IllegalStateException | Returns: the exception which may be immediately thrownthe switch case value val)Return an exception indicating that the current switch case was intended to be unreachable. |
| public static IllegalStateException | Returns: the exception which may be immediately thrownthe switch case value val)Return an exception indicating that the current switch case was intended to be unreachable. |
| public static IllegalStateException | Returns: the exception which may be immediately thrownReturn an exception indicating that the current code was intended to be unreachable. |
| public static UnsupportedOperationException | Returns: the exceptionReturn an exception explaining that the caller's method is not supported. |
| Assert | back to summary |
|---|---|
| private Assert() | |
| assertFalse | back to summary |
|---|---|
| public static boolean assertFalse(boolean expr) Assert that the given expression is always
| |
| assertHoldsLock | back to summary |
|---|---|
| public static <T> T assertHoldsLock(T monitor) Assert that the given monitor is held by the current thread. Use a standard assertion failure message if it is not.
Only runs if
| |
| assertNotHoldsLock | back to summary |
|---|---|
| public static <T> T assertNotHoldsLock(T monitor) Assert that the given monitor is not held by the current thread. Use a standard assertion failure message if it is.
Only runs if
| |
| assertNotNull | back to summary |
|---|---|
| public static <T> T assertNotNull(T value) Assert that the value is not
| |
| assertTrue | back to summary |
|---|---|
| public static boolean assertTrue(boolean expr) Assert that the given expression is always
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final Object[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array.
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final byte[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array.
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final char[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array.
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final int[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array.
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final long[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array.
| |
| checkArrayBounds | back to summary |
|---|---|
| public static void checkArrayBounds(final int arrayLength, final int offs, final int len) throws ArrayIndexOutOfBoundsException Check that the given offset and length fall completely within the bounds of the given array length.
| |
| checkMaximumParameter | back to summary |
|---|---|
| public static void checkMaximumParameter(String name, int max, int actual) throws IllegalArgumentException Check that the named parameter is less than or equal to
| |
| checkMaximumParameter | back to summary |
|---|---|
| public static void checkMaximumParameter(String name, long max, long actual) throws IllegalArgumentException Check that the named parameter is less than or equal to
| |
| checkMaximumParameter | back to summary |
|---|---|
| public static void checkMaximumParameter(String name, float max, float actual) throws IllegalArgumentException Check that the named parameter is less than or equal to
| |
| checkMaximumParameter | back to summary |
|---|---|
| public static void checkMaximumParameter(String name, double max, double actual) throws IllegalArgumentException Check that the named parameter is less than or equal to
| |
| checkMinimumParameter | back to summary |
|---|---|
| public static void checkMinimumParameter(String name, int min, int actual) throws IllegalArgumentException Check that the named parameter is greater than or equal to
| |
| checkMinimumParameter | back to summary |
|---|---|
| public static void checkMinimumParameter(String name, long min, long actual) throws IllegalArgumentException Check that the named parameter is greater than or equal to
| |
| checkMinimumParameter | back to summary |
|---|---|
| public static void checkMinimumParameter(String name, float min, float actual) throws IllegalArgumentException Check that the named parameter is greater than or equal to
| |
| checkMinimumParameter | back to summary |
|---|---|
| public static void checkMinimumParameter(String name, double min, double actual) throws IllegalArgumentException Check that the named parameter is greater than or equal to
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static String checkNotEmptyParam(String name, String value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static CharSequence checkNotEmptyParam(String name, CharSequence value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static <E, T extends Collection Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static <K, V, T extends Map Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static <T> T[] checkNotEmptyParam(String name, T[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static boolean[] checkNotEmptyParam(String name, boolean[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static byte[] checkNotEmptyParam(String name, byte[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static short[] checkNotEmptyParam(String name, short[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static int[] checkNotEmptyParam(String name, int[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static long[] checkNotEmptyParam(String name, long[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static float[] checkNotEmptyParam(String name, float[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotEmptyParam | back to summary |
|---|---|
| public static double[] checkNotEmptyParam(String name, double[] value) Check that the named parameter is not empty. Use a standard exception message if it is.
| |
| checkNotNullArrayParam | back to summary |
|---|---|
| public static <T> T checkNotNullArrayParam(String name, int index, T value) throws IllegalArgumentException Check that a value within the named array parameter is not
| |
| checkNotNullParam | back to summary |
|---|---|
| public static <T> T checkNotNullParam(String name, T value) throws IllegalArgumentException Check that the named parameter is not
| |
| checkNotNullParamChecked | back to summary |
|---|---|
| private static <T> void checkNotNullParamChecked(final String name, final T value) | |
| checkNotNullParamWithNullPointerException | back to summary |
|---|---|
| public static <T> T checkNotNullParamWithNullPointerException(String name, T value) throws NullPointerException Check that the named parameter is not
| |
| impossibleSwitchCase | back to summary |
|---|---|
| public static IllegalStateException impossibleSwitchCase(Object obj) Return an exception indicating that the current switch case was intended to be unreachable.
| |
| impossibleSwitchCase | back to summary |
|---|---|
| public static IllegalStateException impossibleSwitchCase(int val) Return an exception indicating that the current switch case was intended to be unreachable.
| |
| impossibleSwitchCase | back to summary |
|---|---|
| public static IllegalStateException impossibleSwitchCase(long val) Return an exception indicating that the current switch case was intended to be unreachable.
| |
| unreachableCode | back to summary |
|---|---|
| public static IllegalStateException unreachableCode() Return an exception indicating that the current code was intended to be unreachable.
| |
| unsupported | back to summary |
|---|---|
| public static UnsupportedOperationException unsupported() Return an exception explaining that the caller's method is not supported.
| |