public class TiedMapEntry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>, KeyValue<K,V>, java.io.Serializable
Map.Entry
tied to a map underneath.
This can be used to enable a map entry to make changes on the underlying map, however this will probably mess up any iterators.
Constructor and Description |
---|
TiedMapEntry(java.util.Map<K,V> map,
K key)
Constructs a new entry with the given Map and key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this
Map.Entry with another Map.Entry . |
K |
getKey()
Gets the key of this entry
|
V |
getValue()
Gets the value of this entry direct from the map.
|
int |
hashCode()
Gets a hashCode compatible with the equals method.
|
V |
setValue(V value)
Sets the value associated with the key direct onto the map.
|
java.lang.String |
toString()
Gets a string version of the entry.
|
public K getKey()
public V getValue()
public boolean equals(java.lang.Object obj)
Map.Entry
with another Map.Entry
.
Implemented per API documentation of Map.Entry.equals(Object)
public int hashCode()
Implemented per API documentation of Map.Entry.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved