| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
equals(Object that) |
|
public boolean |
equals(MapEntry that)Compares this entry with another MapEntry. |
|
public Object |
getKey() |
|
public Object |
getValue() |
|
protected int |
hash(Object object)Helper method to handle object hashes for possibly null values |
|
public int |
hashCode() |
|
public void |
setKey(Object key)Updates the entry key. |
|
public Object |
setValue(Object value) |
|
public String |
toString() |
Compares this entry with another MapEntry.
that - the entry to compare withtrue if both key and value are equal
Helper method to handle object hashes for possibly null values
Updates the entry key.
key - the new key
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.