List of usage examples for java.util Map isEmpty
boolean 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 isEmpty(Map<?, ?> c) { if (c == null || c.isEmpty()) { return true; } else {// w w w. ja v a2 s .c om return false; } }
From source file:Main.java
public static boolean isEmpty(Map<?, ?> mapToCheck) { return mapToCheck == null || mapToCheck.isEmpty(); }
From source file:Main.java
public static boolean isEmptyMap(Map<Object, Object> map) { if (map == null || map.isEmpty()) { return true; }/*from www. ja va 2s .c o m*/ return false; }
From source file:Main.java
public static boolean isEmptyMap(Map<String, ?> map) { if (map == null || map.isEmpty()) { return true; }//from w w w .ja va 2 s . c o m for (Entry<String, ?> entry : map.entrySet()) { if (entry.getKey() == null || entry.getValue() == null) { return true; } } return false; }
From source file:Main.java
public static boolean isEmpty(Map m) { return (m == null || m.isEmpty()); }
From source file:Main.java
public static boolean emptyOrNull(Map<?, ?> values) { return values == null || values.isEmpty(); }
From source file:Main.java
/** * Check if the given Map is null or empty * //w ww.ja v a 2 s . c om * @param map * @return true if it is empty or null, otherwise false */ public static boolean isEmpty(Map<?, ?> map) { return (map == null) || map.isEmpty(); }
From source file:Main.java
/** * Utility method to check if a map is null or empty * //ww w. j a v a 2s .c o m * @param map * @return */ public static boolean isNullOrEmpty(Map<?, ?> map) { if (map == null || map.isEmpty()) return true; return false; }
From source file:Main.java
public static boolean isEmpty(Map<Object, Object> map) { return null == map || map.isEmpty(); }