public class Assert extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(String textToSearch,
String substring) |
static boolean |
has(Collection<?> collection) |
static boolean |
has(Map<?,?> map) |
static boolean |
has(Object object) |
static boolean |
has(Object[] array) |
static boolean |
has(String text) |
static boolean |
startsWithOneOf(String string,
String... prefixes) |
public static boolean has(Object object)
object - object to check if nullpublic static boolean has(String text)
text - text to check for characterspublic static boolean contains(String textToSearch, String substring)
textToSearch - the text to searchsubstring - string to check in textpublic static boolean has(Object[] array)
array - array to check for presence of elementsnull and must
have at least one element. FALSE otherwisepublic static boolean has(Collection<?> collection)
collection - collection to check for presence of elementsnull and
must have at least one element. @return FALSE otherwisepublic static boolean has(Map<?,?> map)
map - map to check entriesnull and must have at
least one entry. Queue FALSE otherwiseCopyright © 2022. All rights reserved.