Package com._1c.g5.v8.bm.common.check
Class BmAssert
- java.lang.Object
-
- com._1c.g5.v8.bm.common.check.BmAssert
-
public final class BmAssert extends Object
Util class helpfull for validating arguments.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isLegal(boolean expression)
static boolean
isLegal(boolean expression, String message)
static void
isNotNull(Object object)
static void
isNotNull(Object object, String message)
static void
isTrue(boolean expression)
static void
isTrue(boolean expression, String message)
-
-
-
Method Detail
-
isLegal
public static boolean isLegal(boolean expression)
- Parameters:
expression
- - expression to check.- Returns:
- given
expression
.
-
isLegal
public static boolean isLegal(boolean expression, String message)
- Parameters:
expression
- - expression to check.message
- - message to add to exception.- Returns:
- given
expression
.
-
isNotNull
public static void isNotNull(Object object)
- Parameters:
object
- - object to check.
-
isNotNull
public static void isNotNull(Object object, String message)
- Parameters:
object
- - object to check.message
- - message to add to exception.
-
isTrue
public static void isTrue(boolean expression)
- Parameters:
expression
- - expression to check.
-
isTrue
public static void isTrue(boolean expression, String message)
- Parameters:
expression
- - expression to check.message
- - message to add to exception.
-
-