Re: [collections] KeySetMap?

2004-05-04 Thread Stephen Colebourne
This would be a very unusual map implementation (I can't figure out what your keys might be, and thus why you wouldn't use a Set or Bag). What you describe is a FixedSizeMap with the exception that keys can be added via the keySet(). This is a violaton of keySet() (which states that add is not

[collections] KeySetMap?

2004-05-03 Thread Michael Heuer
Hello, I need an implementation of Map that uses a predefined set of keys as its keySet. Changes made to the set of keys should be reflected in the map's keySet but not the other way around, e.g. map.keySet() should be unmodifiable. I've written something using a wrapped map but I'm having