Package com.exedio.cope.misc
Class Check
java.lang.Object
com.exedio.cope.misc.Check
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Comparable<E>>
ErequireAtLeast
(E value, String name, E minimum) 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 int
requireNonNegative
(int value, String name) static long
requireNonNegative
(long value, String name)
-
Method Details
-
requireGreaterZero
-
requireGreaterZero
-
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.
-