public final class Assert extends Object
| Constructor and Description |
|---|
Assert()
Instantiates a new Assert.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
hasText(String text,
String message)
Has text.
|
static void |
notEmpty(Collection<?> collection,
String message)
Not empty.
|
static void |
notEmpty(Map<?,?> map,
String message)
Not empty.
|
static <T> void |
notEmpty(T[] array,
String message) |
public static void hasText(String text, String message)
text - the textmessage - the messagepublic static void notEmpty(Collection<?> collection, String message)
collection - the collectionmessage - the messagepublic static void notEmpty(Map<?,?> map, String message)
map - the mapmessage - the messagepublic static <T> void notEmpty(T[] array,
String message)
Copyright © 2024. All rights reserved.