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
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidcheckState(boolean expr, String msg) static voidcheckState(Object handle, String handleName) static voidstatic voidstatic longsanitizeTimeout(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
-