net.sf.ecl.datepicker.util
Class Assert

java.lang.Object
  extended by net.sf.ecl.datepicker.util.Assert

public class Assert
extends Object

assertion utilities used to enforce code constraints.

Author:
Alexey Afanasyev, Alexey Kharlamov

Method Summary
static void fail(String message)
           
static void isLegal(boolean flag, String message)
           
static void isNotNull(Object ref, String message)
           
static void isTrue(boolean flag)
           
static void isTrue(boolean flag, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isLegal

public static void isLegal(boolean flag,
                           String message)

fail

public static void fail(String message)
                 throws AssertionError
Throws:
AssertionError

isTrue

public static void isTrue(boolean flag,
                          String message)

isTrue

public static void isTrue(boolean flag)

isNotNull

public static void isNotNull(Object ref,
                             String message)