cuba.util.common
Class Assert

java.lang.Object
  extended by cuba.util.common.Assert

public class Assert
extends java.lang.Object

Author:
Jan Lessner

Constructor Summary
Assert()
           
 
Method Summary
static void in(int value, int[] allowedValues)
           
static void in(int value, int[] allowedValues, java.lang.String message)
           
static void in(java.lang.String value, java.lang.String[] allowedValues)
           
static void in(java.lang.String value, java.lang.String[] allowedValues, java.lang.String message)
           
static void notNull(java.lang.Object obj)
           
static void notNull(java.lang.Object obj, java.lang.String message)
           
static void test(boolean condition)
           
static void test(boolean condition, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

test

public static void test(boolean condition,
                        java.lang.String message)
                 throws AssertionException
Throws:
AssertionException

test

public static void test(boolean condition)
                 throws AssertionException
Throws:
AssertionException

notNull

public static void notNull(java.lang.Object obj,
                           java.lang.String message)

notNull

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

in

public static void in(int value,
                      int[] allowedValues)

in

public static void in(int value,
                      int[] allowedValues,
                      java.lang.String message)

in

public static void in(java.lang.String value,
                      java.lang.String[] allowedValues)

in

public static void in(java.lang.String value,
                      java.lang.String[] allowedValues,
                      java.lang.String message)