Package com.kamikazejam.kamicommon.util
Class Preconditions
java.lang.Object
com.kamikazejam.kamicommon.util.Preconditions
Some basic preconditions for when the Google preconditions are not available on the classpath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckArgument(boolean expression) static voidcheckArgument(boolean expression, @Nullable String errorMessage) static <T> TcheckNotNull(T reference) static <T> TcheckNotNull(T reference, @Nullable Object errorMessage)
-
Constructor Details
-
Preconditions
public Preconditions()
-
-
Method Details
-
checkNotNull
@NotNull public static <T> T checkNotNull(@Nullable T reference) -
checkNotNull
@NotNull public static <T> T checkNotNull(@Nullable T reference, @Nullable @Nullable Object errorMessage) -
checkArgument
public static void checkArgument(boolean expression) -
checkArgument
-