Package | Description |
---|---|
org.tinygroup.commons.tools |
Modifier and Type | Method and Description |
---|---|
static Assert.ExceptionType |
Assert.ExceptionType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Assert.ExceptionType[] |
Assert.ExceptionType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Assert.assertNotNull(T object,
Assert.ExceptionType exceptionType,
String message,
Object... args)
确保对象不为空,否则抛出指定异常,默认为
IllegalArgumentException 。 |
static <T> T |
Assert.assertNull(T object,
Assert.ExceptionType exceptionType,
String message,
Object... args)
确保对象为空,否则抛出指定异常,默认为
IllegalArgumentException 。 |
static void |
Assert.assertTrue(boolean expression,
Assert.ExceptionType exceptionType,
String message,
Object... args)
确保表达式为真,否则抛出指定异常,默认为
IllegalArgumentException 。 |
Copyright © 2006–2018 TinyGroup. All rights reserved.