public final class Validate extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
containsNoEmpties(Iterable<String> collection,
String message)
Contains no empties.
|
static void |
containsNoNulls(Iterable<?> collection,
String message)
Contains no nulls.
|
static void |
containsNoNulls(Object[] array,
String message)
Contains no nulls.
|
static boolean |
isDate(String str)
Is date boolean.
|
static void |
isTrue(boolean condition,
String message)
Is true.
|
static void |
main(String[] args)
The entry point of application.
|
static void |
notBlank(StringBuilder object,
String message)
Not blank.
|
static void |
notBlank(String object,
String message)
Not blank.
|
static void |
notEmpty(Collection<?> object,
String message)
Not empty.
|
static void |
notEmpty(Object[] object,
String message)
Not empty.
|
static void |
notNull(Object object,
String message)
Not null.
|
public static void main(String[] args)
args - the input argumentspublic static void notNull(Object object, String message)
object - the objectmessage - the messagepublic static void notBlank(String object, String message)
object - the objectmessage - the messagepublic static void notBlank(StringBuilder object, String message)
object - the objectmessage - the messagepublic static void notEmpty(Collection<?> object, String message)
object - the objectmessage - the messagepublic static void notEmpty(Object[] object, String message)
object - the objectmessage - the messagepublic static void containsNoNulls(Iterable<?> collection, String message)
collection - the collectionmessage - the messagepublic static void containsNoEmpties(Iterable<String> collection, String message)
collection - the collectionmessage - the messagepublic static void containsNoNulls(Object[] array, String message)
array - the arraymessage - the messagepublic static void isTrue(boolean condition,
String message)
condition - the conditionmessage - the messagepublic static boolean isDate(String str)
str - the strCopyright © 2017. All rights reserved.