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

Abyss-lord edited comment on LANG-927 at 7/11/25 3:06 AM:
----------------------------------------------------------

{{Hi [~bayard] , I'm interested in working on this. Would you mind assigning it 
to me?}}
{{should we add {{Class<E> to the arguments list.}}}}


was (Author: JIRAUSER310222):
Hi [~bayard] , I'm interested in working on this. Would you mind assigning it 
to me?

> Create Iterable APIs
> --------------------
>
>                 Key: LANG-927
>                 URL: https://issues.apache.org/jira/browse/LANG-927
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Henri Yandell
>            Priority: Major
>             Fix For: Discussion
>
>
> LANG-848 suggests having Iterable APIs in addition to CharSequence... (or 
> potentially other vararg methods).
> Currently we have 10 Iterable APIs:
> ClassUtils.hierarchy(final Class<?> type) {
> ClassUtils.hierarchy(final Class<?> type, Interfaces interfacesBehavior) {
> EnumUtils.generateBitVector(final Class<E> enumClass, final Iterable<E> 
> values) {
> EnumUtils.generateBitVectors(final Class<E> enumClass, final Iterable<E> 
> values) {
> StringUtils.join(final Iterable<?> iterable, final char separator) {
> StringUtils.join(final Iterable<?> iterable, final String separator) {
> StrBuilder.java.StrBuilder appendAll(final Iterable<?> iterable) {
> StrBuilder.appendWithSeparators(final Iterable<?> iterable, String separator) 
> {
> Validate.noNullElements(final T iterable, final String message, final 
> Object... values) {
> Validate.noNullElements(final T iterable) {
> There are many other methods that could have such, but continuing to add 
> Iterable wherever we see varargs is going to bloat the API.
> Perhaps adding a method to ArrayUtils (or IteratorUtils) can suffice:
> public static E[] iteratorToArray(Iterator<E> iterator);



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to