ANTS v2.0 API

ants.core
Class Assert

java.lang.Object
  |
  +--ants.core.Assert

public final class Assert
extends java.lang.Object

Assert-like utility functions including assert(), ensure and require().

Author:
Utah Janos Team

Inner Class Summary
static interface Assert.AssertFailure
          A run-time Error is thrown if an assert fails.
 
Method Summary
static void assert(boolean test)
           
static void assert(boolean test, java.lang.String msg)
           
static void assert(java.lang.Object obj)
           
static void ensure(boolean test)
           
static void ensure(java.lang.Object obj)
           
static void require(boolean test)
           
static void require(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assert

public static void assert(boolean test)

assert

public static void assert(boolean test,
                          java.lang.String msg)

assert

public static void assert(java.lang.Object obj)

require

public static void require(boolean test)

require

public static void require(java.lang.Object obj)

ensure

public static void ensure(boolean test)

ensure

public static void ensure(java.lang.Object obj)

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/