|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.context.MapEntry<K,V>
K
- The key type.V
- The value type.public class MapEntry<K,V>
Map.Entry implementation that can be constructed to either be read-only or not.
Constructor Summary | |
---|---|
MapEntry(K key,
V value,
boolean modifiable)
Creates a map entry that can either allow modifications or not. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Determines if this entry is equal to the passed object. |
K |
getKey()
Gets the entry key. |
V |
getValue()
Gets the entry value. |
int |
hashCode()
Returns the hashcode for this entry. |
V |
setValue(V 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(K key, V 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 notMethod Detail |
---|
public K getKey()
Gets the entry key.
getKey
in interface Map.Entry<K,V>
public V getValue()
Gets the entry value.
getValue
in interface Map.Entry<K,V>
public V setValue(V val)
Sets the entry value if the entry can be modified.
setValue
in interface Map.Entry<K,V>
val
- The new value
UnsupportedOperationException
- If the entry cannot be modifiedpublic boolean equals(Object o)
Determines if this entry is equal to the passed object.
equals
in interface Map.Entry<K,V>
equals
in class Object
o
- The object to test
public int hashCode()
Returns the hashcode for this entry.
hashCode
in interface Map.Entry<K,V>
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |