boolean (Object o) { if (!(o instanceof Entry)) return false; //noinspection unchecked Entry<K,V> e = (Entry<K,V>)o; return keysEqual(key, e.getKey(), myStrategy) && Objects.equals(getValue(), e.getValue()); }