org.eclipse.net4j.util
Class CheckUtil

java.lang.Object
  extended by org.eclipse.net4j.util.CheckUtil

public final class CheckUtil
extends Object

Provides static methods that check object states and invocation arguments.


Method Summary
static void checkArg(boolean expr, String msg)
           
static void checkArg(Object handle, String handleName)
           
static void checkNull(Object handle, String msg)
           
static void checkState(boolean expr, String msg)
           
static void checkState(Object handle, String handleName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkNull

public static void checkNull(Object handle,
                             String msg)
                      throws NullPointerException
Throws:
NullPointerException

checkArg

public static void checkArg(boolean expr,
                            String msg)
                     throws IllegalArgumentException
Throws:
IllegalArgumentException

checkArg

public static void checkArg(Object handle,
                            String handleName)
                     throws IllegalArgumentException
Throws:
IllegalArgumentException

checkState

public static void checkState(boolean expr,
                              String msg)
                       throws IllegalStateException
Throws:
IllegalStateException

checkState

public static void checkState(Object handle,
                              String handleName)
                       throws IllegalStateException
Throws:
IllegalStateException


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.