Located in compilation unit of org.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
object to be compared for equality with this map entry o)Overrides org. Implements java. Compares the specified object with this entry for equality. |
| public Map. | |
| public Object | getKey()
Overrides org. Implements java. Returns the key corresponding to this entry. |
| public Object | getValue()
Overrides org. Implements java. Returns the value corresponding to this entry. |
| public int | hashCode()
Overrides org. Implements java. Returns the hash code value for this map entry. |
| PyToJavaMapEntry | back to summary |
|---|---|
| pack-priv PyToJavaMapEntry(Map. Create a copy of the Entry with Py.None converted to null | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Implements java. Doc from java. Compares the specified object with this entry for equality.
Returns
(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.
| |
| getEntry | back to summary |
|---|---|
| public Map. | |
| getKey | back to summary |
|---|---|
| public Object getKey() Overrides org. Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getValue | back to summary |
|---|---|
| public Object getValue() Overrides org. Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Implements java. Doc from java. Returns the hash code value for this map entry. The hash code
of a map entry
(e.getKey()==null ? 0 : e.getKey().hashCode()) ^
(e.getValue()==null ? 0 : e.getValue().hashCode())
This ensures that e1.equals(e2) implies that
e1.hashCode()==e2.hashCode() for any two Entries
e1 and e2, as required by the general
contract of Object.hashCode.
| |