public class CollectionUtils
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isEmpty(java.util.Collection<?> collection)
Return
true if the supplied Collection is null or empty. |
static boolean |
isEmpty(java.util.Map<?,?> map)
Return
true if the supplied Map is null or empty. |
static boolean |
isNotEmpty(java.util.Collection<?> collection)
Return
false if the supplied Collection is null or empty. |
static boolean |
isNotEmpty(java.util.Map<?,?> map)
Return
false if the supplied Map is null or empty. |
public static boolean isEmpty(java.util.Collection<?> collection)
true if the supplied Collection is null or empty. false.collection - the Collection to checkpublic static boolean isNotEmpty(java.util.Collection<?> collection)
false if the supplied Collection is null or empty. true.collection - the Collection to checkpublic static boolean isEmpty(java.util.Map<?,?> map)
true if the supplied Map is null or empty. false.map - the Map to checkpublic static boolean isNotEmpty(java.util.Map<?,?> map)
false if the supplied Map is null or empty. true.map - the Map to checkCopyright © 2019. All Rights Reserved.