FileDocCategorySizeDatePackage
$assert.javaAPI DocAndroid 1.5 API1661Wed May 06 22:41:16 BST 2009com.vladium.util.asserts

$assert

public abstract class $assert extends Object
author
Vlad Roubtsov, (C) 2001

Fields Summary
public static final boolean
ENABLED
Global compile time assertion flag.
Constructors Summary
private $assert()

Methods Summary
public static voidASSERT(boolean condition, java.lang.String msg)

param
condition
param
msg

    
              
             
    
        if (ENABLED)
        {
            if (! condition) throw new RuntimeException (msg);
        }
    
public static voidASSERT(boolean condition)

        if (ENABLED)
        {
            if (! condition) throw new RuntimeException ("ASSERTION FAILURE");
        }