Class Checks


  • public class Checks
    extends java.lang.Object
    Pre-made preconditions
    • Constructor Summary

      Constructors 
      Constructor Description
      Checks()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.Iterable<?>>
      T
      checkItemsNotNull​(T iterable, java.lang.String checkedIterable)  
      static <T> T checkNotNull​(T value, java.lang.String checkedValue)  
      static <T> T checkNotNull​(T value, java.lang.String checkedValue, java.lang.String additionalMessage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Checks

        public Checks()
    • Method Detail

      • checkNotNull

        public static <T> T checkNotNull​(T value,
                                         java.lang.String checkedValue)
      • checkNotNull

        public static <T> T checkNotNull​(T value,
                                         java.lang.String checkedValue,
                                         java.lang.String additionalMessage)
      • checkItemsNotNull

        public static <T extends java.lang.Iterable<?>> T checkItemsNotNull​(T iterable,
                                                                            java.lang.String checkedIterable)