public final class CheckUtil extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
HAS_DEBUGGER_ATTACHED |
static boolean |
SANITIZE_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
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) |
static void |
countDown(String message) |
static void |
countUp(String message) |
static long |
sanitizeTimeout(long timeout) |
public static final boolean HAS_DEBUGGER_ATTACHED
public static final boolean SANITIZE_TIMEOUT
public static void checkNull(Object handle, String msg) throws NullPointerException
NullPointerException
public static void checkArg(boolean expr, String msg) throws IllegalArgumentException
IllegalArgumentException
public static void checkArg(Object handle, String handleName) throws IllegalArgumentException
IllegalArgumentException
public static void checkState(boolean expr, String msg) throws IllegalStateException
IllegalStateException
public static void checkState(Object handle, String handleName) throws IllegalStateException
IllegalStateException
public static void countUp(String message)
public static void countDown(String message)
public static long sanitizeTimeout(long timeout)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html