Class MapEntry<K,V> 
java.lang.Object
org.apache.tiles.request.collection.MapEntry<K,V> 
- Type Parameters:
- K- The key type.
- V- The value type.
- All Implemented Interfaces:
- Map.Entry<K,- V> 
- Direct Known Subclasses:
- MapEntryArrayValues
Map.Entry implementation that can be constructed to either be read-only or not.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
MapEntryCreates a map entry that can either allow modifications or not. - Parameters:
- key- The entry key
- value- The entry value
- modifiable- Whether the entry should allow modification or not
 
 
- 
- 
Method Details- 
getKeyGets the entry key. 
- 
getValueGets the entry value. 
- 
setValueSets the entry value if the entry can be modified. - Specified by:
- setValuein interface- Map.Entry<K,- V> 
- Parameters:
- val- The new value
- Returns:
- The old entry value
- Throws:
- UnsupportedOperationException- If the entry cannot be modified
 
- 
equalsDetermines if this entry is equal to the passed object. 
- 
hashCodepublic int hashCode()Returns the hashcode for this entry. 
 
-