Example usage for java.util Map isEmpty

List of usage examples for java.util Map isEmpty

Introduction

In this page you can find the example usage for java.util Map isEmpty.

Prototype

boolean isEmpty();

Source Link

Document

Returns true if this map contains no key-value mappings.

Usage

From source file:Main.java

public static boolean isMapEmpty(Map map) {
    return map == null || map.isEmpty();
}

From source file:Main.java

public static boolean isEmpty(Map map) {
    return (map == null) || map.isEmpty();
}

From source file:Main.java

public static boolean isNullOrEmpty(Map<?, ?> m) {
    return m == null || m.isEmpty();
}

From source file:Main.java

public static boolean isEmpty(Map map) {
    return (map == null) || (map.isEmpty());
}

From source file:Main.java

public static <K, V> boolean mapIsNotNullOrEmpty(Map<K, V> map) {
    return map != null && !map.isEmpty();
}

From source file:Main.java

public static <K, V> boolean isEmpty(Map<K, V> m) {
    return m == null || m.isEmpty();
}

From source file:Main.java

public static boolean isEmpty(Map<?, ?> m) {
    return m == null || m.isEmpty();
}

From source file:Main.java

public static boolean isBlank(Map<?, ?> m) {
    return m == null || m.isEmpty();
}

From source file:Main.java

public static <K, V> boolean isEmpty(Map<K, V> map) {
    return (map == null || map.isEmpty());
}

From source file:Main.java

public static <T> boolean isMapEmpty(Map<T, T> map) {
    return null == map || map.isEmpty();
}