Class Preconditions


  • public final class Preconditions
    extends Object
    • Method Detail

      • expectNonNull

        public static <T> T expectNonNull​(T value)
      • expectNonNull

        public static <T> T expectNonNull​(T value,
                                          String message)
      • expectNonEmpty

        public static String expectNonEmpty​(String value)
      • expectNonEmpty

        public static <E> List<E> expectNonEmpty​(List<E> list)
      • expectNonEmpty

        public static <E> List<E> expectNonEmpty​(List<E> list,
                                                 String message)