Package org.eclipse.net4j.util
Class CheckUtil
java.lang.Object
org.eclipse.net4j.util.CheckUtil
Provides static methods that check object states and invocation arguments.
- Author:
- Eike Stepper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
checkState
(boolean expr, String msg) static void
checkState
(Object handle, String handleName) static void
static void
static long
sanitizeTimeout
(long timeout)
-
Field Details
-
HAS_DEBUGGER_ATTACHED
public static final boolean HAS_DEBUGGER_ATTACHED- Since:
- 3.7
-
SANITIZE_TIMEOUT
public static final boolean SANITIZE_TIMEOUT- Since:
- 3.7
-
-
Method Details
-
checkNull
- Throws:
NullPointerException
-
checkArg
- Throws:
IllegalArgumentException
-
checkArg
- Throws:
IllegalArgumentException
-
checkState
- Throws:
IllegalStateException
-
checkState
- Throws:
IllegalStateException
-
countUp
- Since:
- 3.6
-
countDown
- Since:
- 3.6
-
sanitizeTimeout
public static long sanitizeTimeout(long timeout) - Since:
- 3.7
-