boolean (Object o) { if (!(o instanceof Map.Entry)) { return false; } final Map.Entry<K, V> e = (Map.Entry<K, V>)o; final V value = get(e.getKey()); return value != null && value.equals(e.getValue()); }