Re: HashMap where keys can't be changed but values can be
Tuesday, October 10, 2006 01:43 PM
You could probably subclass the standard HashMap class to add some enforcement rules to the put(Object,Object) method (etc). As far as getting values in it initially, possibly use a copy constructor to take values from a [temporary] standard HashMap instance? Just a wild (and not thought out) idea.