Constructor and Description |
---|
MapEntry(Object key,
Object value,
boolean modifiable)
Creates a map entry that can either allow modifications or not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Determines if this entry is equal to the passed object.
|
Object |
getKey()
Gets the entry key.
|
Object |
getValue()
Gets the entry value.
|
int |
hashCode()
Returns the hashcode for this entry.
|
Object |
setValue(Object val)
Sets the entry value if the entry can be modified.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public Object getKey()
Gets the entry key.
public Object getValue()
Gets the entry value.
public Object setValue(Object val)
Sets the entry value if the entry can be modified.
setValue
in interface Map.Entry
val
- The new valueUnsupportedOperationException
- If the entry cannot be modifiedpublic boolean equals(Object o)
Determines if this entry is equal to the passed object.
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.