Le 21/01/2014 14:44, Gary Gregory a écrit : > That's what the current impl does: a new HashMap with String keys and > String values. Since Strings are immutable, they do not need to be a > 'copy'. Unless I misunderstand you.
That's an independent copy of the structure of the record. Changes to the map are not reflected in the record (and shouldn't). An alternative would be a Map backed by the record. Calling map.get("foo") would translate to record.get("foo"), etc. We did something similar in [configuration] (read/write here). http://svn.apache.org/repos/asf/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationMap.java Emmanuel Bourg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org