|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.collect.AbstractMapEntry<K,V>
public abstract class AbstractMapEntry<K,V>
Implementation of the equals, hashCode, and toString
methods of Entry.
| Constructor Summary | |
|---|---|
AbstractMapEntry()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether an object equals this entry, following the behavior specified in Map.Entry.equals(java.lang.Object). |
abstract K |
getKey()
|
abstract V |
getValue()
|
int |
hashCode()
Return this entry's hash code, following the behavior specified in Map.Entry.hashCode(). |
V |
setValue(V value)
|
java.lang.String |
toString()
Returns a string representation of the form {key}={value}. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMapEntry()
| Method Detail |
|---|
public abstract K getKey()
getKey in interface java.util.Map.Entry<K,V>public abstract V getValue()
getValue in interface java.util.Map.Entry<K,V>public V setValue(V value)
This implementation throws an UnsupportedOperationException.
Override this method to support mutable map entries.
setValue in interface java.util.Map.Entry<K,V>public boolean equals(java.lang.Object o)
Map.Entry.equals(java.lang.Object).
equals in interface java.util.Map.Entry<K,V>equals in class java.lang.Objectpublic int hashCode()
Map.Entry.hashCode().
hashCode in interface java.util.Map.Entry<K,V>hashCode in class java.lang.Objectpublic java.lang.String toString()
{key}={value}.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||