Class ImmutableMapEntry<K,E>
java.lang.Object
org.magicwerk.brownies.collections.ImmutableMapEntry<K,E>
- All Implemented Interfaces:
Map.Entry<K,
E>
Read-only implementation of Map.Entry.
-
Field Details
-
key
-
value
-
-
Constructor Details
-
ImmutableMapEntry
Constructor of an immutable map entry.- Parameters:
key
- keyvalue
- value
-
-
Method Details
-
getKey
-
getValue
-
setValue
Note that this method fails with an AssertionError because the object is read only.
-
toString
-