public class DesignByContract {

  public static void require(boolean test, RuntimeException ex)
    throws RuntimeException {
    if ( !test ) {
        throw ex;        
    }//if
  }//requiere
  public static void ensure(boolean test, RuntimeException ex)
    throws RuntimeException{
    if ( !test ) {
        throw ex;        
    }//if
  }//ensure
}//DesignByContract
