You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tapan Vaishnav (JIRA)" <ji...@apache.org> on 2018/03/17 05:13:00 UTC

[jira] [Commented] (SOLR-11913) SolrParams ought to implement Iterable>

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

Tapan Vaishnav commented on SOLR-11913:
---------------------------------------

[~dsmiley] [~gus_heck]
I have added the patch. Please have a look at it and let me know your feedback.

> SolrParams ought to implement Iterable<Map.Entry<String,String[]>>
> ------------------------------------------------------------------
>
>                 Key: SOLR-11913
>                 URL: https://issues.apache.org/jira/browse/SOLR-11913
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: David Smiley
>            Priority: Minor
>              Labels: newdev
>         Attachments: SOLR-11913.patch
>
>
> SolrJ ought to implement {{Iterable<Map.Entry<String,String[]>>}} so that it's easier to iterate on it, either using Java 5 for-each style, or Java 8 streams.  The implementation on ModifiableSolrParams can delegate through to the underlying LinkedHashMap entry set.  The default impl can produce a Map.Entry with a getValue that calls through to getParams.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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