jltools.util
Class Assert

java.lang.Object
  |
  +--jltools.util.Assert

public final class Assert
extends java.lang.Object

Assert Overview: Assert contains a few methods helpful for implementing assertions in Java.


Method Summary
static void assert(boolean ok)
          static void assert(boolean ok) Throws an error if not .
static void assert(java.lang.String condition, boolean ok)
          static void assert(String condition, boolean ok) Asserts that holds -- in other words, that is true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assert

public static void assert(boolean ok)
static void assert(boolean ok) Throws an error if not .

assert

public static void assert(java.lang.String condition,
                          boolean ok)
static void assert(String condition, boolean ok) Asserts that holds -- in other words, that is true. Throws an error otherwise.