Class Assertions


  • public class Assertions
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Assertions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertState​(boolean state, java.util.function.Supplier<java.lang.String> message)  
      static <T> T nonNull​(T t)  
      static <T> T nonNull​(T t, java.util.function.Supplier<java.lang.String> message)  
      • Methods inherited from class java.lang.Object

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

      • Assertions

        public Assertions()
    • Method Detail

      • assertState

        public static void assertState​(boolean state,
                                       java.util.function.Supplier<java.lang.String> message)
      • nonNull

        public static <T> T nonNull​(T t)
      • nonNull

        public static <T> T nonNull​(T t,
                                    java.util.function.Supplier<java.lang.String> message)