commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: svn commit: r1509450 - in /commons/proper/csv/trunk/src: main/java/org/apache/commons/csv/CSVRecord.java test/java/org/apache/commons/csv/CSVRecordIntTest.java
Date Thu, 01 Aug 2013 23:02:01 GMT
Le 01/08/2013 23:57, ggregory@apache.org a écrit :

> Add CSVRecord#getInt(String) API and tests.

All of these methods are already implemented in [configuration] with
pretty much all the types you might need (Enums, URLs, colors, emails,
dates, calendars, primitives, arrays, etc). If CSVRecord could return a
map this could be done with:

    Configuration config = new MapConfiguration(record.toMap());
    config.getInt("column1");
    config.getLong("column2", defaultValue);


Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message