public class SonosUtilityHelper extends Object
| Constructor and Description |
|---|
SonosUtilityHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(Collection<?> collection)
This method returns true if the collection is null or is empty.
|
static boolean |
isEmpty(Map<?,?> map)
This method returns true of the map is null or is empty.
|
static boolean |
isEmpty(Object object)
This method returns true if the objet is null.
|
static boolean |
isEmpty(Object[] array)
This method returns true if the input array is null or its length is zero.
|
static boolean |
isEmpty(String string)
This method returns true if the input string is null or its length is zero.
|
public static boolean isEmpty(Collection<?> collection)
collection - to check if emptypublic static boolean isEmpty(Map<?,?> map)
map - to check if emptypublic static boolean isEmpty(Object object)
object - to check if nullpublic static boolean isEmpty(Object[] array)
array - to check if emptypublic static boolean isEmpty(String string)
string - to check if emptyCopyright © 2018. All rights reserved.