|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.util.OneToManyMap.Entry<From,To>
public static class OneToManyMap.Entry<From,To>
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. |
From |
getKey()
Answer the key for the entry |
To |
getValue()
Answer the value for the entry |
int |
hashCode()
Returns the hash code value for this map entry. |
To |
setValue(To 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.Entry<From,To>
equals
in class Object
x
- The object to compare against
public From getKey()
getKey
in interface Map.Entry<From,To>
public To getValue()
getValue
in interface Map.Entry<From,To>
public To setValue(To value) throws UnsupportedOperationException
setValue
in interface Map.Entry<From,To>
UnsupportedOperationException
public int hashCode()
hashCode
in interface Map.Entry<From,To>
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |