|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Throws | |
---|---|
net.sf.qualitycheck |
Uses of Throws in net.sf.qualitycheck |
---|
Methods in net.sf.qualitycheck with annotations of type Throws | ||
---|---|---|
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
|
ConditionalCheck.contains(boolean condition,
Collection<T> haystack,
T needle)
Ensures that an element needle is contained in a collection haystack . |
|
static
|
ConditionalCheck.contains(boolean condition,
Collection<T> haystack,
T needle,
String name)
Ensures that an element needle is contained in a collection haystack . |
|
static
|
Check.contains(Collection<T> haystack,
T needle)
Ensures that an element needle is contained in a collection haystack . |
|
static
|
Check.contains(Collection<T> haystack,
T needle,
String name)
Ensures that an element needle is contained in a collection haystack . |
|
static boolean |
Check.equals(boolean expected,
boolean check)
Ensures that a passed boolean is equal to another boolean. |
|
static void |
ConditionalCheck.equals(boolean condition,
boolean expected,
boolean check)
Ensures that a passed boolean is equal to another boolean. |
|
static void |
ConditionalCheck.equals(boolean condition,
boolean expected,
boolean check,
String message)
Ensures that a passed boolean is equal to another boolean. |
|
static boolean |
Check.equals(boolean expected,
boolean check,
String message)
Ensures that a passed boolean is equal to another boolean. |
|
static void |
ConditionalCheck.equals(boolean condition,
byte expected,
byte check)
Ensures that a passed byte is equal to another byte. |
|
static void |
ConditionalCheck.equals(boolean condition,
byte expected,
byte check,
String message)
Ensures that a passed byte is equal to another byte. |
|
static void |
ConditionalCheck.equals(boolean condition,
char expected,
char check)
Ensures that a passed char is equal to another char. |
|
static void |
ConditionalCheck.equals(boolean condition,
char expected,
char check,
String message)
Ensures that a passed char is equal to another char. |
|
static void |
ConditionalCheck.equals(boolean condition,
int expected,
int check)
Ensures that a passed intH is equal to another int. |
|
static void |
ConditionalCheck.equals(boolean condition,
int expected,
int check,
String message)
Ensures that a passed int is equal to another int. |
|
static void |
ConditionalCheck.equals(boolean condition,
long expected,
long check)
Ensures that a passed long is equal to another long. |
|
static void |
ConditionalCheck.equals(boolean condition,
long expected,
long check,
String message)
Ensures that a passed long is equal to another long. |
|
static void |
ConditionalCheck.equals(boolean condition,
short expected,
short check)
Ensures that a passed short is equal to another short. |
|
static void |
ConditionalCheck.equals(boolean condition,
short expected,
short check,
String message)
Ensures that a passed short is equal to another short. |
|
static
|
ConditionalCheck.equals(boolean condition,
T expected,
T check)
Ensures that a passed object is equal to another object. |
|
static
|
ConditionalCheck.equals(boolean condition,
T expect,
T check,
String msg)
Ensures that a passed object is equal to another object. |
|
static byte |
Check.equals(byte expected,
byte check)
Ensures that a passed byte is equal to another byte. |
|
static byte |
Check.equals(byte expected,
byte check,
String message)
Ensures that a passed byte is equal to another byte. |
|
static char |
Check.equals(char expected,
char check)
Ensures that a passed char is equal to another char. |
|
static char |
Check.equals(char expected,
char check,
String message)
Ensures that a passed char is equal to another char. |
|
static int |
Check.equals(int expected,
int check)
Ensures that a passed intH is equal to another int. |
|
static int |
Check.equals(int expected,
int check,
String message)
Ensures that a passed int is equal to another int. |
|
static long |
Check.equals(long expected,
long check)
Ensures that a passed long is equal to another long. |
|
static long |
Check.equals(long expected,
long check,
String message)
Ensures that a passed long is equal to another long. |
|
static short |
Check.equals(short expected,
short check)
Ensures that a passed short is equal to another short. |
|
static short |
Check.equals(short expected,
short check,
String message)
Ensures that a passed short is equal to another short. |
|
static
|
Check.equals(T expected,
T check)
Ensures that a passed object is equal to another object. |
|
static
|
Check.equals(T expected,
T check)
Ensures that a passed Comparable is equal to another Comparable . |
|
static
|
Check.equals(T expected,
T check,
String message)
Ensures that a passed object is equal to another object. |
|
static
|
Check.equals(T expected,
T check,
String message)
Ensures that a passed Comparable is equal to another Comparable . |
|
static
|
ConditionalCheck.greaterOrEqualThan(boolean condition,
T expected,
T check)
Ensures that a passed Comparable is greater than or equal to Comparable . |
|
static
|
ConditionalCheck.greaterOrEqualThan(boolean condition,
T expected,
T check,
String message)
Ensures that a passed Comparable is greater than or equal to another Comparable . |
|
static
|
Check.greaterOrEqualThan(T expected,
T check)
Ensures that a passed Comparable is greater or equal compared to another Comparable . |
|
static
|
Check.greaterOrEqualThan(T expected,
T check,
String message)
Ensures that a passed Comparable is greater or equal compared to another Comparable . |
|
static
|
ConditionalCheck.greaterThan(boolean condition,
T expected,
T check)
Ensures that a passed Comparable is greater to another Comparable . |
|
static
|
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
|
Check.greaterThan(T expected,
T check)
Ensures that a passed Comparable is greater to another Comparable . |
|
static
|
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
|
ConditionalCheck.instanceOf(boolean condition,
Class<?> type,
Object obj)
Ensures that a passed argument is a member of a specific type. |
|
static
|
ConditionalCheck.instanceOf(boolean condition,
Class<?> type,
Object obj,
String name)
Ensures that a passed argument is a member of a specific type. |
|
static
|
Check.instanceOf(Class<?> type,
Object obj)
Ensures that a passed argument is a member of a specific type. |
|
static
|
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.isNull(boolean condition,
Object reference)
Ensures that a given argument is null . |
|
static void |
ConditionalCheck.isNull(boolean condition,
Object reference,
String name)
Ensures that a given argument is null . |
|
static void |
Check.isNull(Object reference)
Ensures that a given argument is null . |
|
static void |
Check.isNull(Object reference,
String name)
Ensures that a given argument is null . |
|
static void |
ConditionalCheck.isNumber(boolean condition,
String value)
Ensures that a String argument is a number. |
|
static
|
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
|
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
|
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
|
Check.isNumber(String value,
String name,
Class<T> type)
Ensures that a String argument is a number. |
|
static
|
ConditionalCheck.isNumeric(boolean condition,
T value)
Ensures that a readable sequence of char values is numeric. |
|
static
|
ConditionalCheck.isNumeric(boolean condition,
T value,
String name)
Ensures that a readable sequence of char values is numeric. |
|
static
|
Check.isNumeric(T value)
Ensures that a readable sequence of char values is numeric. |
|
static
|
Check.isNumeric(T value,
String name)
Ensures that a readable sequence of char values is numeric. |
|
static
|
ConditionalCheck.lesserThan(boolean condition,
T expected,
T check)
Ensures that a passed Comparable is less than another Comparable . |
|
static
|
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
|
Check.lesserThan(T expected,
T check)
Ensures that a passed Comparable is less than another Comparable . |
|
static
|
Check.lesserThan(T expected,
T check,
String message)
Ensures that a passed Comparable is less than another Comparable . |
|
static
|
ConditionalCheck.matchesPattern(boolean condition,
Pattern pattern,
T chars)
Ensures that a readable sequence of char values matches a specified pattern. |
|
static
|
ConditionalCheck.matchesPattern(boolean condition,
Pattern pattern,
T chars,
String name)
Ensures that a readable sequence of char values matches a specified pattern. |
|
static
|
Check.matchesPattern(Pattern pattern,
T chars)
Ensures that a readable sequence of char values matches a specified pattern. |
|
static
|
Check.matchesPattern(Pattern pattern,
T chars,
String name)
Ensures that a readable sequence of char values matches a specified pattern. |
|
static
|
ConditionalCheck.noNullElements(boolean condition,
T iterable)
Ensures that an iterable reference is neither null nor contains any elements that are null . |
|
static
|
ConditionalCheck.noNullElements(boolean condition,
T[] array)
Ensures that an array does not contain null . |
|
static
|
ConditionalCheck.noNullElements(boolean condition,
T[] array,
String name)
Ensures that an array does not contain null . |
|
static
|
ConditionalCheck.noNullElements(boolean condition,
T iterable,
String name)
Ensures that an iterable reference is neither null nor contains any elements that are null . |
|
static
|
Check.noNullElements(T iterable)
Ensures that an iterable reference is neither null nor contains any elements that are null . |
|
static
|
Check.noNullElements(T[] array)
Ensures that an array does not contain null . |
|
static
|
Check.noNullElements(T[] array,
String name)
Ensures that an array does not contain null . |
|
static
|
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
|
ConditionalCheck.notEmpty(boolean condition,
T chars)
Ensures that a passed string as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T collection)
Ensures that a passed collection as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T map)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T[] array)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T[] array,
String name)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
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
|
ConditionalCheck.notEmpty(boolean condition,
T chars,
String name)
Ensures that a passed string as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T collection,
String name)
Ensures that a passed collection as a parameter of the calling method is not empty. |
|
static
|
ConditionalCheck.notEmpty(boolean condition,
T map,
String name)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T chars)
Ensures that a passed string as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T collection)
Ensures that a passed collection as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T map)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T[] array)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T[] array,
String name)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static
|
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
|
Check.notEmpty(T chars,
String name)
Ensures that a passed string as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T collection,
String name)
Ensures that a passed collection as a parameter of the calling method is not empty. |
|
static
|
Check.notEmpty(T map,
String name)
Ensures that a passed map as a parameter of the calling method is not empty. |
|
static void |
ConditionalCheck.notNaN(boolean condition,
double value)
Ensures that a double argument is not NaN (not a number). |
|
static void |
ConditionalCheck.notNaN(boolean condition,
double value,
String name)
Ensures that a double argument is not NaN (not a number). |
|
static void |
ConditionalCheck.notNaN(boolean condition,
float value)
Ensures that a double argument is not NaN (not a number). |
|
static void |
ConditionalCheck.notNaN(boolean condition,
float value,
String name)
Ensures that a double argument is not NaN (not a number). |
|
static double |
Check.notNaN(double value)
Ensures that a double argument is not NaN (not a number). |
|
static double |
Check.notNaN(double value,
String name)
Ensures that a double argument is not NaN (not a number). |
|
static float |
Check.notNaN(float value)
Ensures that a double argument is not NaN (not a number). |
|
static float |
Check.notNaN(float value,
String name)
Ensures that a double argument is not NaN (not a number). |
|
static void |
ConditionalCheck.notNegative(boolean condition,
int value)
Ensures that an integer reference passed as a parameter to the calling method is not smaller than 0 . |
|
static void |
ConditionalCheck.notNegative(boolean condition,
int value,
String name)
Ensures that an integer reference passed as a parameter to the calling method is not smaller than 0 . |
|
static double |
Check.notNegative(double value)
Ensures that an double reference passed as a parameter to the calling method is not smaller than 0 . |
|
static double |
Check.notNegative(double value,
String name)
Ensures that an double reference passed as a parameter to the calling method is not smaller than 0 . |
|
static float |
Check.notNegative(float value)
Ensures that an float reference passed as a parameter to the calling method is not smaller than 0 . |
|
static float |
Check.notNegative(float value,
String name)
Ensures that an float reference passed as a parameter to the calling method is not smaller than 0 . |
|
static int |
Check.notNegative(int value)
Ensures that an integer reference passed as a parameter to the calling method is not smaller than 0 . |
|
static int |
Check.notNegative(int value,
String name)
Ensures that an integer reference passed as a parameter to the calling method is not smaller than 0 . |
|
static long |
Check.notNegative(long value)
Ensures that an long reference passed as a parameter to the calling method is not smaller than 0 . |
|
static long |
Check.notNegative(long value,
String name)
Ensures that an long reference passed as a parameter to the calling method is not smaller than 0 . |
|
static short |
Check.notNegative(short value)
Ensures that an short reference passed as a parameter to the calling method is not smaller than 0 . |
|
static short |
Check.notNegative(short value,
String name)
Ensures that an short reference passed as a parameter to the calling method is not smaller than 0 . |
|
static
|
ConditionalCheck.notNull(boolean condition,
T reference)
Ensures that an object reference passed as a parameter to the calling method is not null . |
|
static
|
ConditionalCheck.notNull(boolean condition,
T reference,
String name)
Ensures that an object reference passed as a parameter to the calling method is not null . |
|
static
|
Check.notNull(T reference)
Ensures that an object reference passed as a parameter to the calling method is not null . |
|
static
|
Check.notNull(T reference,
String name)
Ensures that an object reference passed as a parameter to the calling method is not null . |
|
static void |
ConditionalCheck.notPositive(boolean condition,
int value)
Ensures that an integer reference passed as a parameter to the calling method is not greater than 0 . |
|
static void |
ConditionalCheck.notPositive(boolean condition,
int value,
String name)
Ensures that an integer reference passed as a parameter to the calling method is not greater than 0 . |
|
static double |
Check.notPositive(double value)
Ensures that an double reference passed as a parameter to the calling method is not greater than 0 . |
|
static double |
Check.notPositive(double value,
String name)
Ensures that an double reference passed as a parameter to the calling method is not greater than 0 . |
|
static float |
Check.notPositive(float value)
Ensures that an float reference passed as a parameter to the calling method is not greater than 0 . |
|
static float |
Check.notPositive(float value,
String name)
Ensures that an float reference passed as a parameter to the calling method is not greater than 0 . |
|
static int |
Check.notPositive(int value)
Ensures that an integer reference passed as a parameter to the calling method is not greater than 0 . |
|
static int |
Check.notPositive(int value,
String name)
Ensures that an integer reference passed as a parameter to the calling method is not greater than 0 . |
|
static long |
Check.notPositive(long value)
Ensures that an long reference passed as a parameter to the calling method is not greater than 0 . |
|
static long |
Check.notPositive(long value,
String name)
Ensures that an long reference passed as a parameter to the calling method is not greater than 0 . |
|
static short |
Check.notPositive(short value)
Ensures that an short reference passed as a parameter to the calling method is not greater than 0 . |
|
static short |
Check.notPositive(short value,
String name)
Ensures that an short reference passed as a parameter to the calling method is not greater than 0 . |
|
static void |
ConditionalCheck.positionIndex(boolean condition,
int index,
int size)
Ensures that a given position index is valid within the size of an array, list or string ... |
|
static int |
Check.positionIndex(int index,
int size)
Ensures that a given position index is valid within the size of an array, list or string ... |
|
static void |
ConditionalCheck.range(boolean condition,
int start,
int end,
int size)
Ensures that the given arguments are a valid range. |
|
static void |
Check.range(int start,
int end,
int size)
Ensures that the given arguments are a valid range. |
|
static void |
Check.stateIsTrue(boolean expression)
Ensures that a given state is true . |
|
static void |
ConditionalCheck.stateIsTrue(boolean condition,
boolean expression)
Ensures that a given state is true . |
|
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 |
ConditionalCheck.stateIsTrue(boolean condition,
boolean expression,
String description)
Ensures that a given state is true . |
|
static void |
ConditionalCheck.stateIsTrue(boolean condition,
boolean expression,
String descriptionTemplate,
Object... descriptionTemplateArgs)
Ensures that a given state is 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 . |
|
static void |
Check.stateIsTrue(boolean expression,
String description)
Ensures that a given state is true . |
|
static void |
Check.stateIsTrue(boolean expression,
String descriptionTemplate,
Object... descriptionTemplateArgs)
Ensures that a given state is true |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |