|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.morph.context.support.MapEntry
public class MapEntry
Map.Entry implementation that can be constructed to either be read-only or not.
This class was copied from Jakarta Commons Chain.
| Constructor Summary | |
|---|---|
MapEntry(java.lang.Object key,
java.lang.Object value,
boolean modifiable)
Creates a map entry that can either allow modifications or not. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Determines if this entry is equal to the passed object. |
java.lang.Object |
getKey()
Gets the entry key. |
java.lang.Object |
getValue()
Gets the entry value. |
int |
hashCode()
Returns the hashcode for this entry. |
java.lang.Object |
setValue(java.lang.Object val)
Sets the entry value if the entry can be modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapEntry(java.lang.Object key,
java.lang.Object value,
boolean modifiable)
Creates a map entry that can either allow modifications or not.
key - The entry keyvalue - The entry valuemodifiable - Whether the entry should allow modification or not| Method Detail |
|---|
public java.lang.Object getKey()
Gets the entry key.
getKey in interface java.util.Map.Entrypublic java.lang.Object getValue()
Gets the entry value.
getValue in interface java.util.Map.Entrypublic java.lang.Object setValue(java.lang.Object val)
Sets the entry value if the entry can be modified.
setValue in interface java.util.Map.Entryval - The new value
java.lang.UnsupportedOperationException - If the entry cannot be modifiedpublic boolean equals(java.lang.Object o)
Determines if this entry is equal to the passed object.
equals in interface java.util.Map.Entryequals in class java.lang.Objecto - The object to test
public int hashCode()
Returns the hashcode for this entry.
hashCode in interface java.util.Map.EntryhashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||