On 28/08/2013 14:25, Masayoshi Okutsu wrote:
(adding core-libs-dev)
Hi Christian,
RFC 4647 defines The Language Priority List [1]. The use of
java.util.List would be a natural fit, which is the reason why List is
used. But use of Iterable does work (as API design). The parameter
name `priorityIterable' sounds a bit odd, though.
Does use of Iterable add much value to the API? (Please note that List
is also used in Locale.LanguageRange.)
It depends on the usages but Iterable would be a bit more flexible. Does
the locale matcher require to do anything except iterate over the
elements? The return could be looked at it but it depends on the typical
usage -- would the user of the API typically just iterate over the
matched Locales?
-Alan.