public final class MapFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
emptyToNull(Map<K,V> map)
Returns the specified map if is contains any key-value mappings, or
null if the map is empty. |
static <K,V> boolean |
isNullOrEmpty(Map<K,V> map)
Returns true if the specified map is
null or contains no key-value mappings. |
public static <K,V> Map<K,V> emptyToNull(Map<K,V> map)
null if the map is empty.K - the type of keys maintained by this mapV - the type of mapped valuesmap - the map to be checkedpublic static <K,V> boolean isNullOrEmpty(Map<K,V> map)
null or contains no key-value mappings.K - the type of keys maintained by this mapV - the type of mapped valuesmap - the map to be checkedCopyright © 2016–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.