Class Preconditions

java.lang.Object
com.kamikazejam.kamicommon.util.Preconditions

public class Preconditions extends Object
Some basic preconditions for when the Google preconditions are not available on the classpath
  • 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

      public static void checkArgument(boolean expression, @Nullable @Nullable String errorMessage)