On Tue, Jan 21, 2014 at 8:22 AM, Emmanuel Bourg <ebo...@apache.org> wrote:

> 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)
>

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.

Gary


> > - CSVRecord implements toMap() -> Map<String, String> (a read-only
> HashMap)
>
> +1
>
> Emmanuel Bourg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to