Package java.util
Interface Map.Entry

Public Method equals

abstract boolean equals(Object o)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Compares the specified object with this entry for equality. Returns true if the given object is also a map entry and the two entries represent the same mapping. More formally, two entries e1 and e2 represent the same mapping if

   (e1.getKey()==null ?
   e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
   (e1.getValue()==null ?
   e2.getValue()==null : e1.getValue().equals(e2.getValue()))


This ensures that the equals method works properly across different implementations of the Map.Entry interface.