|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.hp.hpl.jena.util.OneToManyMap.Entry
Helper class to implement the Map.Entry interface to enumerate entries in the map
| Method Summary | |
boolean |
equals(java.lang.Object x)
Compares the specified object with this entry for equality. |
java.lang.Object |
getKey()
Answer the key for the entry |
java.lang.Object |
getValue()
Answer the value for the entry |
int |
hashCode()
Returns the hash code value for this map entry. |
java.lang.Object |
setValue(java.lang.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(java.lang.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 java.util.Map.Entryequals in class java.lang.Objectx - The object to compare againstpublic java.lang.Object getKey()
getKey in interface java.util.Map.Entrypublic java.lang.Object getValue()
getValue in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
throws java.lang.UnsupportedOperationException
setValue in interface java.util.Map.Entrypublic int hashCode()
hashCode in interface java.util.Map.EntryhashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||