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 void
checkArgument
(boolean expression) static void
checkArgument
(boolean expression, @Nullable String errorMessage) static <T> T
checkNotNull
(T reference) static <T> T
checkNotNull
(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
-