Class Assert

java.lang.Object
edu.sc.seis.TauP.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

    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 Details

    • Assert

      public Assert()
  • Method Details

    • 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