@Test public void conditionTest() { Conditions.condition(1 == 1, "I hope this is true or we have bigger problems"); }
public static void condition(boolean condition, String message) { if (!condition) { throw new IllegalStateException(message); } }
Conditions { public static void condition(boolean condition, String message) { if (!condition) { throw new IllegalStateException(message); } } }
Conditions { public static void condition(boolean condition, String message) { if (!condition) { throw new IllegalStateException(message); } } private  Conditions(); }
Conditions { public static void condition(boolean condition, String message) { if (!condition) { throw new IllegalStateException(message); } } private  Conditions(); static void condition(boolean condition, String message); @SafeVarargs static T checkState(T value, T... states); static byte isSmaller(byte value, byte max); static byte isLarger(byte value, byte min); static byte inRange(byte value, byte min, byte max); static short isSmaller(short value, short max); static short isLarger(short value, short min); static short inRange(short value, short min, short max); static float isSmaller(float value, float max); static float isLarger(float value, float min); static float inRange(float value, float min, float max); static double isSmaller(double value, double max); static double isLarger(double value, double min); static double inRange(double value, double min, double max); static int isSmaller(int value, int max); static int isLarger(int value, int min); static int inRange(int value, int min, int max); static int inRange(int value, T[] array); static int inRange(int value, Collection<T> collection); static long isSmaller(long value, long max); static long isLarger(long value, long min); static long inRange(long value, long min, long max); static String nonNullOrEmpty(String value, Object message); static T nonNull(T value, Object message); }
Conditions { public static void condition(boolean condition, String message) { if (!condition) { throw new IllegalStateException(message); } } private  Conditions(); static void condition(boolean condition, String message); @SafeVarargs static T checkState(T value, T... states); static byte isSmaller(byte value, byte max); static byte isLarger(byte value, byte min); static byte inRange(byte value, byte min, byte max); static short isSmaller(short value, short max); static short isLarger(short value, short min); static short inRange(short value, short min, short max); static float isSmaller(float value, float max); static float isLarger(float value, float min); static float inRange(float value, float min, float max); static double isSmaller(double value, double max); static double isLarger(double value, double min); static double inRange(double value, double min, double max); static int isSmaller(int value, int max); static int isLarger(int value, int min); static int inRange(int value, int min, int max); static int inRange(int value, T[] array); static int inRange(int value, Collection<T> collection); static long isSmaller(long value, long max); static long isLarger(long value, long min); static long inRange(long value, long min, long max); static String nonNullOrEmpty(String value, Object message); static T nonNull(T value, Object message);  }