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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MapEntry
Creates a map entry that can either allow modifications or not.
- Parameters:
key
- The entry keyvalue
- The entry valuemodifiable
- Whether the entry should allow modification or not
-
-
Method Details
-
getKey
Gets the entry key.
-
getValue
Gets the entry value.
-
setValue
Sets the entry value if the entry can be modified.
- Specified by:
setValue
in interfaceMap.Entry<K,
V> - Parameters:
val
- The new value- Returns:
- The old entry value
- Throws:
UnsupportedOperationException
- If the entry cannot be modified
-
equals
Determines if this entry is equal to the passed object.
-
hashCode
public int hashCode()Returns the hashcode for this entry.
-