src/main/java/org/jivesoftware/smack/util/collections/AbstractHashedMap.java
protected boolean isEqualKey(Object key1, Object key2) {
        return (key1 == key2 || ((key1 != null) && key1.equals(key2)));
    }
protected boolean isEqualKey(Object key1, Object key2) {
        return (key1 == key2 || ((key1 != null) && key1.equals(key2)));
    }
Compares two keys, in internal converted form, to see if they are equal.
This implementation uses the equals method. Subclasses can override this
to match differently.

@param key1
the first key to compare passed in from outside
@param key2
the second key extracted from the entry via
<code>entry.key</code>
@return true if equal