|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.util.OneToManyMap.Entry
public class OneToManyMap.Entry
Helper class to implement the Map.Entry interface to enumerate entries in the map
| Method Summary | |
|---|---|
boolean |
equals(Object x)
Compares the specified object with this entry for equality. |
Object |
getKey()
Answer the key for the entry |
Object |
getValue()
Answer the value for the entry |
int |
hashCode()
Returns the hash code value for this map entry. |
Object |
setValue(Object value)
Set the value, which writes through to the map. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(Object x)
(e1.getKey()==null ?
e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
(e1.getValue()==null ?
e2.getValue()==null : e1.getValue().equals(e2.getValue()))
This ensures that the equals method works properly across different implementations of the Map.Entry interface.
equals in interface Map.Entryequals in class Objectx - The object to compare against
public Object getKey()
getKey in interface Map.Entrypublic Object getValue()
getValue in interface Map.Entry
public Object setValue(Object value)
throws UnsupportedOperationException
setValue in interface Map.EntryUnsupportedOperationExceptionpublic int hashCode()
hashCode in interface Map.EntryhashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||