[ 
https://issues.apache.org/jira/browse/CSV-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239032#comment-13239032
 ] 

Sebb commented on CSV-83:
-------------------------

It looks as though the header Map is not part of the public API.
If that is the case then using a separate encapsulator class is not necessary.
We could change the headers to be (e.g.) a sorted list - if that were more 
efficient - without affecting the API.

It's not good to over-engineer, but IMO it's worse to expose internal 
implementation details in the public API, which is why I raised the issue 
initially.
                
> Provide a header encapsulator class
> -----------------------------------
>
>                 Key: CSV-83
>                 URL: https://issues.apache.org/jira/browse/CSV-83
>             Project: Commons CSV
>          Issue Type: Improvement
>            Reporter: Sebb
>
> Might be useful to have a class to encapsulate the headers, rather than 
> assuming they are stored as a map.
> This would allow more a more flexible implementation if required.
> Methods which it would be useful to have:
> - getIndex(name) - could return -1 for unknown name?
> - iterator()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to