public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof Map.Entry)) {
            return false;
        }
        Map.Entry other = (Map.Entry) obj;
        return (getKey() == null ? other.getKey() == null : getKey().equals(other.getKey())) && (getValue() == null ? other.getValue() == null : getValue().equals(other.getValue()));
    }
Compares this Map Entry with another Map Entry.
<p/>
Implemented per API documentation of {@link java.util.Map.Entry#equals(Object)}

@param obj the object to compare to
@return true if equal key and value
jphp-runtime/src/php/runtime/common/collections/keyvalue/AbstractMapEntry.java