Class Preconditions


  • public class Preconditions
    extends Object
    • Constructor Detail

      • Preconditions

        public Preconditions()
    • Method Detail

      • checkArgument

        public static <T> T checkArgument​(T argument,
                                          Function<T,​Boolean> predicate,
                                          Object errorMessage)
      • checkNotNull

        public static <T> T checkNotNull​(T argument)
      • checkNotNull

        public static <T> T checkNotNull​(T argument,
                                         Object errorMessage)