ConditionalCheck { @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotLesserThanException.class }) public static <T extends Comparable<T>> void lesserThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check) { Check.notNull(expected, "expected"); Check.notNull(check, "check"); if (condition) { Check.lesserThan(expected, check); } } private  ConditionalCheck(); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotContainedArgumentException.class }) static void contains(final boolean condition, @Nonnull final Collection<T> haystack, @Nonnull final T needle); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotContainedArgumentException.class }) static void contains(final boolean condition, @Nonnull final Collection<T> haystack, @Nonnull final T needle,
			@Nonnull final String name); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final boolean expected, final boolean check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final boolean expected, final boolean check, @Nonnull final String message); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final byte expected, final byte check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final byte expected, final byte check, @Nonnull final String message); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final char expected, final char check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final char expected, final char check, @Nonnull final String message); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final int expected, final int check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final int expected, final int check, @Nonnull final String message); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final long expected, final long check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final long expected, final long check, @Nonnull final String message); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final short expected, final short check); @Throws(IllegalNotEqualException.class) static void equals(final boolean condition, final short expected, final short check, @Nonnull final String message); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotEqualException.class }) static T equals(final boolean condition, @Nonnull final T expected, @Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotEqualException.class }) static void equals(final boolean condition, @Nonnull final T expect, @Nonnull final T check, final String msg); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotGreaterOrEqualThanException.class }) static void greaterOrEqualThan(final boolean condition, @Nonnull final T expected,
			@Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotGreaterOrEqualThanException.class }) static void greaterOrEqualThan(final boolean condition, @Nonnull final T expected,
			@Nonnull final T check, @Nonnull final String message); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotGreaterThanException.class }) static void greaterThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotGreaterThanException.class }) static void greaterThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check,
			final String message); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalMissingAnnotationException.class }) static void hasAnnotation(final boolean condition, @Nonnull final Class<?> clazz,
			@Nonnull final Class<? extends Annotation> annotation); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalInstanceOfArgumentException.class }) @SuppressWarnings("unchecked") static T instanceOf(final boolean condition, @Nonnull final Class<?> type, @Nonnull final Object obj); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalInstanceOfArgumentException.class }) @SuppressWarnings("unchecked") static T instanceOf(final boolean condition, @Nonnull final Class<?> type, @Nonnull final Object obj,
			@Nullable final String name); @Throws(IllegalNotNullArgumentException.class) static void isNull(final boolean condition, @Nullable final Object reference); @Throws(IllegalNotNullArgumentException.class) static void isNull(final boolean condition, @Nullable final Object reference, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) static void isNumber(final boolean condition, @Nonnull final String value); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) static void isNumber(final boolean condition, @Nonnull final String value, @Nonnull final Class<T> type); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) static void isNumber(final boolean condition, @Nonnull final String value, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) static void isNumber(final boolean condition, @Nonnull final String value, @Nullable final String name,
			@Nonnull final Class<T> type); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumberArgumentException.class }) static void isNumeric(final boolean condition, @Nonnull final T value); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNumericArgumentException.class }) static void isNumeric(final boolean condition, @Nonnull final T value, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotLesserThanException.class }) static void lesserThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNotLesserThanException.class }) static void lesserThan(final boolean condition, @Nonnull final T expected, @Nonnull final T check,
			final String message); @ArgumentsChecked @Throws(IllegalNullArgumentException.class) static void matchesPattern(final boolean condition, @Nonnull final Pattern pattern,
			@Nonnull final T chars); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalPatternArgumentException.class }) static void matchesPattern(final boolean condition, @Nonnull final Pattern pattern,
			@Nonnull final T chars, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class }) static void noNullElements(final boolean condition, @Nonnull final T iterable); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class }) static void noNullElements(final boolean condition, @Nonnull final T iterable, final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class }) static void noNullElements(final boolean condition, @Nonnull final T[] array); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalNullElementsException.class }) static void noNullElements(final boolean condition, @Nonnull final T[] array, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, final boolean expression); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, final boolean expression, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T chars); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T collection); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T map); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T reference, final boolean expression,
			@Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T chars, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T map, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T collection, @Nullable final String name); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T[] array); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class }) static void notEmpty(final boolean condition, @Nonnull final T[] array, @Nullable final String name); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final boolean expected, final boolean check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final boolean expected, final boolean check, @Nonnull final String message); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final byte expected, final byte check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final byte expected, final byte check, @Nonnull final String message); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final char expected, final char check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final char expected, final char check, @Nonnull final String message); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final int expected, final int check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final int expected, final int check, @Nonnull final String message); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final long expected, final long check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final long expected, final long check, @Nonnull final String message); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final short expected, final short check); @Throws(IllegalEqualException.class) static void notEquals(final boolean condition, final short expected, final short check, @Nonnull final String message); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEqualException.class }) static void notEquals(final boolean condition, @Nonnull final T expected, @Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEqualException.class }) static void notEquals(final boolean condition, @Nonnull final T expected, @Nonnull final T check); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEqualException.class }) static void notEquals(final boolean condition, @Nonnull final T expected, @Nonnull final T check,
			final String message); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, IllegalEqualException.class }) static void notEquals(final boolean condition, @Nonnull final T expected, @Nonnull final T check,
			final String message); @Throws(IllegalNaNArgumentException.class) static void notNaN(final boolean condition, final double value); @Throws(IllegalNaNArgumentException.class) static void notNaN(final boolean condition, final double value, @Nullable final String name); @Throws(IllegalNaNArgumentException.class) static void notNaN(final boolean condition, final float value); @Throws(IllegalNaNArgumentException.class) static void notNaN(final boolean condition, final float value, @Nullable final String name); @Throws(IllegalNegativeArgumentException.class) static void notNegative(final boolean condition, final int value); @Throws(IllegalNegativeArgumentException.class) static void notNegative(final boolean condition, final int value, @Nullable final String name); @Throws(IllegalNullArgumentException.class) static void notNull(final boolean condition, @Nonnull final T reference); @Throws(IllegalNullArgumentException.class) static void notNull(final boolean condition, @Nonnull final T reference, @Nullable final String name); @Throws(IllegalPositiveArgumentException.class) static void notPositive(final boolean condition, final int value); @Throws(IllegalPositiveArgumentException.class) static void notPositive(final boolean condition, final int value, @Nullable final String name); @Throws(IllegalPositionIndexException.class) static void positionIndex(final boolean condition, final int index, final int size); @Throws(IllegalRangeException.class) static void range(final boolean condition, @Nonnegative final int start, @Nonnegative final int end, @Nonnegative final int size); @Throws(IllegalStateOfArgumentException.class) static void stateIsTrue(final boolean condition, final boolean expression); @ArgumentsChecked @Throws({ IllegalNullArgumentException.class, RuntimeInstantiationException.class }) static void stateIsTrue(final boolean condition, final boolean expression, final Class<? extends RuntimeException> clazz); @Throws(IllegalStateOfArgumentException.class) static void stateIsTrue(final boolean condition, final boolean expression, @Nonnull final String description); @Throws(IllegalStateOfArgumentException.class) static void stateIsTrue(final boolean condition, final boolean expression, @Nonnull final String descriptionTemplate,
			final Object... descriptionTemplateArgs);  }
@Test public void testLesserThan_Negative() { final Long check = Long.valueOf(100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(false, expected, check); }
@Test public void testLesserThan_Positive() { final Long check = Long.valueOf(-100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(true, expected, check); }
@Test(expected = IllegalNotLesserThanException.class) public void testLesserThan_Positive_Failure() { final Long check = Long.valueOf(100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(true, expected, check); }
@Test public void testLesserThanMessage_Negative() { final Long check = Long.valueOf(100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(false, expected, check, "Must be lesser than 0."); }
@Test public void testLesserThanMessage_Positive() { final Long check = Long.valueOf(-100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(true, expected, check, "Must be lesser than 0."); }
@Test(expected = IllegalNotLesserThanException.class) public void testLesserThanMessage_Positive_Failure() { final Long check = Long.valueOf(100l); final Long expected = Long.valueOf(0l); ConditionalCheck.lesserThan(true, expected, check, "Must be lesser than 0."); }