org.eclipse.net4j.util
Class CheckUtil
java.lang.Object
org.eclipse.net4j.util.CheckUtil
- public final class CheckUtil
- extends Object
Provides static methods that check object states and invocation arguments.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.