Package org.liquigraph.core.exception
Class Preconditions
- java.lang.Object
-
- org.liquigraph.core.exception.Preconditions
-
public class Preconditions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckArgument(boolean condition, String errorMessage)static <T> TcheckNotNull(T item)static voidcheckState(boolean condition)
-
-
-
Method Detail
-
checkNotNull
public static <T> T checkNotNull(T item)
-
checkArgument
public static void checkArgument(boolean condition, String errorMessage)
-
checkState
public static void checkState(boolean condition)
-
-