Class Contract


  • public class Contract
    extends java.lang.Object
    A set of methods to support some sort of "Design by Contract" programming.
    • Constructor Summary

      Constructors 
      Constructor Description
      Contract()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkArg​(boolean isOK, java.lang.String s)  
      static void checkState​(boolean isOK, java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • Contract

        public Contract()
    • Method Detail

      • checkArg

        public static void checkArg​(boolean isOK,
                                    java.lang.String s)
      • checkState

        public static void checkState​(boolean isOK,
                                      java.lang.String s)