Class Assertions


  • public class Assertions
    extends java.lang.Object
    This class contains a constant that is used as a guard around assertions that are considered expensive. Since this field is static final, the compiler will use this information to remove the assertions completely from the generated byte code at compile time. A "release" mode build would substitute a version of this class that changes this value to false, thereby disabling assertions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean isEnabled  
    • Constructor Summary

      Constructors 
      Constructor Description
      Assertions()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • Assertions

        public Assertions()