Class Preconditions


  • public final class Preconditions
    extends Object
    • Method Detail

      • checkNotNull

        public static <T> T checkNotNull​(T value,
                                         String message)
      • check

        public static <T> T check​(T value,
                                  boolean test,
                                  String message)
      • check

        public static long check​(long value,
                                 boolean test,
                                 String message)
      • check

        public static int check​(int value,
                                boolean test,
                                String message)