Class Assert


  • public class Assert
    extends java.lang.Object
    utility class for checking assertions. The methods simply throw an IllegalArguementException if the assertion is not met.
    • Constructor Summary

      Constructors 
      Constructor Description
      Assert()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void isFalse​(boolean b, java.lang.String s)  
      static void isNotNull​(java.lang.Object o, java.lang.String s)  
      static void isTrue​(boolean b, java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • Assert

        public Assert()
    • Method Detail

      • isTrue

        public static void isTrue​(boolean b,
                                  java.lang.String s)
                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • isFalse

        public static void isFalse​(boolean b,
                                   java.lang.String s)
                            throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • isNotNull

        public static void isNotNull​(java.lang.Object o,
                                     java.lang.String s)
                              throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException