public class Assert extends Object
| Constructor and Description |
|---|
Assert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
isTrue(boolean condition,
int errorCode)
Deprecated.
|
static void |
isTrue(boolean condition,
String message,
int errorCode)
Deprecated.
|
static void |
notNull(Object object)
Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.
|
static void |
notNull(Object object,
int errorCode)
Deprecated.
|
static void |
notNull(Object object,
String message)
Asserts that an object is not null; if it is null, a KurentoMediaFrameworkException is thrown.
|
static void |
notNull(Object object,
String message,
int errorCode)
Deprecated.
|
@Deprecated public static void notNull(Object object, int errorCode)
object - Object to be checked whether or not is nullerrorCode - Error code which determines the exception to be raise if the object is nullpublic static void notNull(Object object)
object - Object to be checked whether or not is null@Deprecated public static void notNull(Object object, String message, int errorCode)
object - Object to be checked whether or not is nullerrorCode - Error code which determines the exception to be raise if the object is nullmessage - Message to be appended at the end of the description errorpublic static void notNull(Object object, String message)
object - Object to be checked whether or not is nullmessage - Message to be appended at the end of the description error@Deprecated public static void isTrue(boolean condition, int errorCode)
condition - Boolean condition to be checkederrorCode - Error code which determines the exception to be raise if the condition is not met@Deprecated public static void isTrue(boolean condition, String message, int errorCode)
condition - Boolean condition to be checkedmessage - the message to show in case the assertion failserrorCode - Error code which determines the exception to be raise if the condition is not metCopyright © 2017 Kurento. All rights reserved.