|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.api.support.MapEntry<K,V>
K - The type of keys in the map.V - The type of values in the map.public class MapEntry<K,V>
This is an implementation of Map.Entry that can be used by
classes implementing the Map interface.
| Constructor Summary | |
|---|---|
MapEntry(Map<K,V> m,
K key,
V value)
Create a new map entry. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Implemented according to the contract in Map.Entry. |
K |
getKey()
|
V |
getValue()
|
int |
hashCode()
Implemented according to the contract in Map.Entry. |
V |
setValue(V value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapEntry(Map<K,V> m,
K key,
V value)
m - The map owning this entry.key - The entry's key.value - The entry's value.| Method Detail |
|---|
public K getKey()
getKey in interface Map.Entry<K,V>public V getValue()
getValue in interface Map.Entry<K,V>public V setValue(V value)
setValue in interface Map.Entry<K,V>public boolean equals(Object o)
Map.Entry.
equals in interface Map.Entry<K,V>equals in class Objectpublic int hashCode()
Map.Entry.
hashCode in interface Map.Entry<K,V>hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||