|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.collections.MapEntry<K,V>
K
- type of the KeyV
- type of the Valuepublic class MapEntry<K,V>
Implementation of java.util.Map.Entry.
Field Summary | |
---|---|
protected K |
key
|
protected V |
value
|
Constructor Summary | |
---|---|
MapEntry(K _key,
V _value)
Construct a new Entry |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks if another object is equal to this one, i.e. |
K |
getKey()
|
V |
getValue()
|
int |
hashCode()
Creates a hashcode combining both keys and values. |
K |
setKey(K _key)
Allow the key to be changed |
V |
setValue(V _value)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected K key
protected V value
Constructor Detail |
---|
public MapEntry(K _key, V _value)
Method Detail |
---|
public K getKey()
getKey
in interface java.util.Map.Entry<K,V>
public V getValue()
getValue
in interface java.util.Map.Entry<K,V>
public V setValue(V _value)
setValue
in interface java.util.Map.Entry<K,V>
public java.lang.String toString()
toString
in class java.lang.Object
public K setKey(K _key)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map.Entry<K,V>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map.Entry<K,V>
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |