- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,V>
public class ImmutableValueHashMap<K,V>
extends HashMap<K,V>
Once a value is written it cannot be replaced. Use in situations where once a value is written another process does not change or modify it without design intent.
This class does allow a variant which is preventive in nature that, automatically ensures the value is a List always,
so any additions for a Key go into a List. A get on the key will always return a map.
- Author:
- Arjun Dhar
- See Also:
- Serialized Form