List of usage examples for java.util Map isEmpty
boolean isEmpty();
From source file:Main.java
/** * Returns {@code true} if the specified {@code Map} is {@code null} or {@link Map#isEmpty empty}, * {@code false} otherwise./*from w w w . j av a 2s .co m*/ * * @param m the {@code Map} to check * @return {@code true} if the specified {@code Map} is {@code null} or {@link Map#isEmpty empty}, * {@code false} otherwise. * @since 1.0 */ public static boolean isEmpty(Map m) { return m == null || m.isEmpty(); }
From source file:Main.java
@SuppressWarnings("rawtypes") public static boolean isEmpty(Map map) { return (map == null || map.isEmpty()); }
From source file:Main.java
public static boolean isEmpty(Map<?, ?> c) { return c == null || c.isEmpty(); }
From source file:Main.java
public static boolean isEmpty(Map map) { return null == map || 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 empty(Map<?, ?> c) { return c == null || c.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 <K, V> boolean isEmpty(Map<K, V> map) { if (map == null || map.isEmpty()) { return true; }/*from w w w.j a v a 2s. c om*/ return false; }
From source file:Main.java
public static <T, S> boolean isEmpty(final Map<T, S> map) { return map == null || map.isEmpty(); }
From source file:Main.java
public static boolean isEmpty(Map map) { return (map == null || map.isEmpty()); }