Package com.exedio.cope.util
Class Check
java.lang.Object
com.exedio.cope.util.Check
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Comparable<E>>
ErequireAtLeast
(E value, String name, E minimum) static double
requireGreaterZero
(double value, String name) static int
requireGreaterZero
(int value, String name) static long
requireGreaterZero
(long value, String name) static String
requireNonEmpty
(String value, String name) static String[]
requireNonEmptyAndCopy
(String[] value, String name) Besides checking the value, this method returns a copy of the given value to avoid later modifications of the value by the caller.static <T> T[]
requireNonEmptyAndCopy
(T[] value, String name) Besides checking the value, this method returns a copy of the given value to avoid later modifications of the value by the caller.static double
requireNonNegative
(double value, String name) static int
requireNonNegative
(int value, String name) static long
requireNonNegative
(long value, String name)
-
Method Details
-
requireGreaterZero
-
requireGreaterZero
-
requireGreaterZero
-
requireNonNegative
-
requireNonNegative
-
requireNonNegative
-
requireAtLeast
-
requireNonEmpty
-
requireNonEmptyAndCopy
Besides checking the value, this method returns a copy of the given value to avoid later modifications of the value by the caller. -
requireNonEmptyAndCopy
Besides checking the value, this method returns a copy of the given value to avoid later modifications of the value by the caller.
-