Uses of Class
net.sf.qualitycheck.ArgumentsChecked

Packages that use ArgumentsChecked
net.sf.qualitycheck   
 

Uses of ArgumentsChecked in net.sf.qualitycheck
 

Methods in net.sf.qualitycheck with annotations of type ArgumentsChecked
static byte NumberInRange.checkByte(Number number)
          Checks if a given number is in the range of a byte.
static double NumberInRange.checkDouble(Number number)
          Checks if a given number is in the range of a double.
static float NumberInRange.checkFloat(Number number)
          Checks if a given number is in the range of a float.
static int NumberInRange.checkInteger(Number number)
          Checks if a given number is in the range of an integer.
static int NumberInRange.checkLong(Number number)
          Checks if a given number is in the range of a long.
static short NumberInRange.checkShort(Number number)
          Checks if a given number is in the range of a short.
static
<T> void
ConditionalCheck.contains(boolean condition, Collection<T> haystack, T needle)
          Ensures that an element needle is contained in a collection haystack.
static
<T> void
ConditionalCheck.contains(boolean condition, Collection<T> haystack, T needle, String name)
          Ensures that an element needle is contained in a collection haystack.
static
<T> T
Check.contains(Collection<T> haystack, T needle)
          Ensures that an element needle is contained in a collection haystack.
static
<T> T
Check.contains(Collection<T> haystack, T needle, String name)
          Ensures that an element needle is contained in a collection haystack.
static
<T> T
ConditionalCheck.equals(boolean condition, T expected, T check)
          Ensures that a passed object is equal to another object.
static
<T> void
ConditionalCheck.equals(boolean condition, T expect, T check, String msg)
          Ensures that a passed object is equal to another object.
static
<T> T
Check.equals(T expected, T check)
          Ensures that a passed object is equal to another object.
static
<T extends Comparable<T>>
T
Check.equals(T expected, T check)
          Ensures that a passed Comparable is equal to another Comparable.
static
<T> T
Check.equals(T expected, T check, String message)
          Ensures that a passed object is equal to another object.
static
<T extends Comparable<T>>
T
Check.equals(T expected, T check, String message)
          Ensures that a passed Comparable is equal to another Comparable.
static
<T extends Comparable<T>>
void
ConditionalCheck.greaterOrEqualThan(boolean condition, T expected, T check)
          Ensures that a passed Comparable is greater than or equal to Comparable.
static
<T extends Comparable<T>>
void
ConditionalCheck.greaterOrEqualThan(boolean condition, T expected, T check, String message)
          Ensures that a passed Comparable is greater than or equal to another Comparable.
static
<T extends Comparable<T>>
T
Check.greaterOrEqualThan(T expected, T check)
          Ensures that a passed Comparable is greater or equal compared to another Comparable.
static
<T extends Comparable<T>>
T
Check.greaterOrEqualThan(T expected, T check, String message)
          Ensures that a passed Comparable is greater or equal compared to another Comparable.
static
<T extends Comparable<T>>
void
ConditionalCheck.greaterThan(boolean condition, T expected, T check)
          Ensures that a passed Comparable is greater to another Comparable.
static
<T extends Comparable<T>>
void
ConditionalCheck.greaterThan(boolean condition, T expected, T check, String message)
          Ensures that a passed Comparable is greater than another Comparable.
static byte Check.greaterThan(byte expected, byte check)
          Ensures that a passed byte is greater to another byte.
static byte Check.greaterThan(byte expected, byte check, String message)
          Ensures that a passed byte is greater than another byte.
static char Check.greaterThan(char expected, char check)
          Ensures that a passed char is greater to another char.
static char Check.greaterThan(char expected, char check, String message)
          Ensures that a passed char is greater than another char.
static double Check.greaterThan(double expected, double check)
          Ensures that a passed double is greater to another double.
static double Check.greaterThan(double expected, double check, String message)
          Ensures that a passed double is greater than another double.
static float Check.greaterThan(float expected, float check)
          Ensures that a passed float is greater to another float.
static float Check.greaterThan(float expected, float check, String message)
          Ensures that a passed float is greater than another float.
static int Check.greaterThan(int expected, int check)
          Ensures that a passed int is greater to another int.
static int Check.greaterThan(int expected, int check, String message)
          Ensures that a passed int is greater than another int.
static long Check.greaterThan(long expected, long check)
          Ensures that a passed long is greater to another long.
static long Check.greaterThan(long expected, long check, String message)
          Ensures that a passed long is greater than another long.
static short Check.greaterThan(short expected, short check)
          Ensures that a passed short is greater to another short.
static short Check.greaterThan(short expected, short check, String message)
          Ensures that a passed short is greater than another short.
static
<T extends Comparable<T>>
T
Check.greaterThan(T expected, T check)
          Ensures that a passed Comparable is greater to another Comparable.
static
<T extends Comparable<T>>
T
Check.greaterThan(T expected, T check, String message)
          Ensures that a passed Comparable is greater than another Comparable.
static void ConditionalCheck.hasAnnotation(boolean condition, Class<?> clazz, Class<? extends Annotation> annotation)
          Ensures that a passed class has an annotation of a specific type
static Annotation Check.hasAnnotation(Class<?> clazz, Class<? extends Annotation> annotation)
          Ensures that a passed class has an annotation of a specific type
static
<T> T
ConditionalCheck.instanceOf(boolean condition, Class<?> type, Object obj)
          Ensures that a passed argument is a member of a specific type.
static
<T> T
ConditionalCheck.instanceOf(boolean condition, Class<?> type, Object obj, String name)
          Ensures that a passed argument is a member of a specific type.
static
<T> T
Check.instanceOf(Class<?> type, Object obj)
          Ensures that a passed argument is a member of a specific type.
static
<T> T
Check.instanceOf(Class<?> type, Object obj, String name)
          Ensures that a passed argument is a member of a specific type.
static boolean NumberInRange.isInRange(Number number, BigDecimal min, BigDecimal max)
          Test if a number is in an arbitrary range.
static boolean NumberInRange.isInRange(Number number, BigInteger min, BigInteger max)
          Test if a number is in an arbitrary range.
static void ConditionalCheck.isNumber(boolean condition, String value)
          Ensures that a String argument is a number.
static
<T extends Number>
void
ConditionalCheck.isNumber(boolean condition, String value, Class<T> type)
          Ensures that a String argument is a number.
static void ConditionalCheck.isNumber(boolean condition, String value, String name)
          Ensures that a string argument is a number according to Integer.parseInt
static
<T extends Number>
void
ConditionalCheck.isNumber(boolean condition, String value, String name, Class<T> type)
          Ensures that a String argument is a number.
static int Check.isNumber(String value)
          Ensures that a String argument is a number.
static
<T extends Number>
T
Check.isNumber(String value, Class<T> type)
          Ensures that a String argument is a number.
static int Check.isNumber(String value, String name)
          Ensures that a string argument is a number according to Integer.parseInt
static
<T extends Number>
T
Check.isNumber(String value, String name, Class<T> type)
          Ensures that a String argument is a number.
static
<T extends CharSequence>
void
ConditionalCheck.isNumeric(boolean condition, T value)
          Ensures that a readable sequence of char values is numeric.
static
<T extends CharSequence>
void
ConditionalCheck.isNumeric(boolean condition, T value, String name)
          Ensures that a readable sequence of char values is numeric.
static
<T extends CharSequence>
T
Check.isNumeric(T value)
          Ensures that a readable sequence of char values is numeric.
static
<T extends CharSequence>
T
Check.isNumeric(T value, String name)
          Ensures that a readable sequence of char values is numeric.
static
<T extends Comparable<T>>
void
ConditionalCheck.lesserThan(boolean condition, T expected, T check)
          Ensures that a passed Comparable is less than another Comparable.
static
<T extends Comparable<T>>
void
ConditionalCheck.lesserThan(boolean condition, T expected, T check, String message)
          Ensures that a passed Comparable is less than another Comparable.
static byte Check.lesserThan(byte expected, byte check)
          Ensures that a passed byte is less than another byte.
static byte Check.lesserThan(byte expected, byte check, String message)
          Ensures that a passed byte is less than another byte.
static char Check.lesserThan(char expected, char check)
          Ensures that a passed char is less than another char.
static char Check.lesserThan(char expected, char check, String message)
          Ensures that a passed char is less than another char.
static double Check.lesserThan(double expected, double check)
          Ensures that a passed double is less than another double.
static double Check.lesserThan(double expected, double check, String message)
          Ensures that a passed double is less than another double.
static float Check.lesserThan(float expected, float check)
          Ensures that a passed float is less than another float.
static float Check.lesserThan(float expected, float check, String message)
          Ensures that a passed float is less than another float.
static int Check.lesserThan(int expected, int check)
          Ensures that a passed int is less than another int.
static int Check.lesserThan(int expected, int check, String message)
          Ensures that a passed int is less than another int.
static long Check.lesserThan(long expected, long check)
          Ensures that a passed long is less than another long.
static long Check.lesserThan(long expected, long check, String message)
          Ensures that a passed long is less than another long.
static short Check.lesserThan(short expected, short check)
          Ensures that a passed short is less than another short.
static short Check.lesserThan(short expected, short check, String message)
          Ensures that a passed short is less than another short.
static
<T extends Comparable<T>>
T
Check.lesserThan(T expected, T check)
          Ensures that a passed Comparable is less than another Comparable.
static
<T extends Comparable<T>>
T
Check.lesserThan(T expected, T check, String message)
          Ensures that a passed Comparable is less than another Comparable.
static
<T extends CharSequence>
void
ConditionalCheck.matchesPattern(boolean condition, Pattern pattern, T chars)
          Ensures that a readable sequence of char values matches a specified pattern.
static
<T extends CharSequence>
void
ConditionalCheck.matchesPattern(boolean condition, Pattern pattern, T chars, String name)
          Ensures that a readable sequence of char values matches a specified pattern.
static
<T extends CharSequence>
T
Check.matchesPattern(Pattern pattern, T chars)
          Ensures that a readable sequence of char values matches a specified pattern.
static
<T extends CharSequence>
T
Check.matchesPattern(Pattern pattern, T chars, String name)
          Ensures that a readable sequence of char values matches a specified pattern.
static
<T extends Iterable<?>>
void
ConditionalCheck.noNullElements(boolean condition, T iterable)
          Ensures that an iterable reference is neither null nor contains any elements that are null.
static
<T> void
ConditionalCheck.noNullElements(boolean condition, T[] array)
          Ensures that an array does not contain null.
static
<T> void
ConditionalCheck.noNullElements(boolean condition, T[] array, String name)
          Ensures that an array does not contain null.
static
<T extends Iterable<?>>
void
ConditionalCheck.noNullElements(boolean condition, T iterable, String name)
          Ensures that an iterable reference is neither null nor contains any elements that are null.
static
<T extends Iterable<?>>
T
Check.noNullElements(T iterable)
          Ensures that an iterable reference is neither null nor contains any elements that are null.
static
<T> T[]
Check.noNullElements(T[] array)
          Ensures that an array does not contain null.
static
<T> T[]
Check.noNullElements(T[] array, String name)
          Ensures that an array does not contain null.
static
<T extends Iterable<?>>
T
Check.noNullElements(T iterable, String name)
          Ensures that an iterable reference is neither null nor contains any elements that are null.
static void Check.notEmpty(boolean expression)
          Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the emptiness.
static void ConditionalCheck.notEmpty(boolean condition, boolean expression)
          Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the emptiness.
static void ConditionalCheck.notEmpty(boolean condition, boolean expression, String name)
          Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the emptiness.
static void Check.notEmpty(boolean expression, String name)
          Ensures that a passed parameter of the calling method is not empty, using the passed expression to evaluate the emptiness.
static
<T extends CharSequence>
void
ConditionalCheck.notEmpty(boolean condition, T chars)
          Ensures that a passed string as a parameter of the calling method is not empty.
static
<T extends Collection<?>>
void
ConditionalCheck.notEmpty(boolean condition, T collection)
          Ensures that a passed collection as a parameter of the calling method is not empty.
static
<T extends Map<?,?>>
void
ConditionalCheck.notEmpty(boolean condition, T map)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> void
ConditionalCheck.notEmpty(boolean condition, T[] array)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> void
ConditionalCheck.notEmpty(boolean condition, T[] array, String name)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> void
ConditionalCheck.notEmpty(boolean condition, T reference, boolean expression, String name)
          Ensures that an object reference passed as a parameter to the calling method is not empty.
static
<T extends CharSequence>
void
ConditionalCheck.notEmpty(boolean condition, T chars, String name)
          Ensures that a passed string as a parameter of the calling method is not empty.
static
<T extends Collection<?>>
void
ConditionalCheck.notEmpty(boolean condition, T collection, String name)
          Ensures that a passed collection as a parameter of the calling method is not empty.
static
<T extends Map<?,?>>
void
ConditionalCheck.notEmpty(boolean condition, T map, String name)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T extends CharSequence>
T
Check.notEmpty(T chars)
          Ensures that a passed string as a parameter of the calling method is not empty.
static
<T extends Collection<?>>
T
Check.notEmpty(T collection)
          Ensures that a passed collection as a parameter of the calling method is not empty.
static
<T extends Map<?,?>>
T
Check.notEmpty(T map)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> T[]
Check.notEmpty(T[] array)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> T[]
Check.notEmpty(T[] array, String name)
          Ensures that a passed map as a parameter of the calling method is not empty.
static
<T> T
Check.notEmpty(T reference, boolean expression, String name)
          Ensures that an object reference passed as a parameter to the calling method is not empty.
static
<T extends CharSequence>
T
Check.notEmpty(T chars, String name)
          Ensures that a passed string as a parameter of the calling method is not empty.
static
<T extends Collection<?>>
T
Check.notEmpty(T collection, String name)
          Ensures that a passed collection as a parameter of the calling method is not empty.
static
<T extends Map<?,?>>
T
Check.notEmpty(T map, String name)
          Ensures that a passed map as a parameter of the calling method is not empty.
static void ConditionalCheck.stateIsTrue(boolean condition, boolean expression, Class<? extends RuntimeException> clazz)
          Ensures that a given state is true and allows to specify the class of exception which is thrown in case the state is not true.
static void Check.stateIsTrue(boolean expression, Class<? extends RuntimeException> clazz)
          Ensures that a given state is true and allows to specify the class of exception which is thrown in case the state is not true.
 



Copyright © 2012-2013. All Rights Reserved.