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 intrequireGreaterZero(int value, String name) static longrequireGreaterZero(long value, String name) static StringrequireNonEmpty(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 intrequireNonNegative(int value, String name) static longrequireNonNegative(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.
-