2014/1/21 Emmanuel Bourg <ebo...@apache.org>: > Le 21/01/2014 14:04, Gary Gregory a écrit : > >> - CSVRecord implements Map<String, String> >> - CSVRecord implements Map<String, String> but read-only > > -1 > >> - CSVRecord implements toMap() -> Map<String, String> (a plain HashMap) > > +0 (that's fine if the map is a copy of the record) > >> - CSVRecord implements toMap() -> Map<String, String> (a read-only HashMap) > > +1
</snip> In this case, why not expose a CSVRecord.asMap() which would be a read-only Map<String, String> view of the CSVRecord. This would allow subsequent changes to the record to be visible in the Map view. I don't know if this would be feasible though. My 2 cents, Julien > > Emmanuel Bourg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org