[
https://issues.apache.org/jira/browse/LANG-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16434584#comment-16434584
]
ASF GitHub Bot commented on LANG-1390:
--------------------------------------
GitHub user joschi opened a pull request:
https://github.com/apache/commons-lang/pull/324
LANG-1390: StringUtils#join() for List<?>
This pull request implements two variants of the `StringUtils#join()`
method which work on lists (`java.util.List`) and allow specifying the start
and end indices of the elements to join.
Refs https://issues.apache.org/jira/browse/LANG-1390
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/joschi/commons-lang LANG-1390
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/324.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #324
----
commit d6e8fbcdd2559d2fd53aa031ec5c7a21cda7c0f8
Author: Jochen Schalanda <jochen@...>
Date: 2018-04-11T18:27:05Z
LANG-1390: StringUtils#join() for List<?>
----
> StringUtils.join() with support for List<?> with configurable start/end
> indices
> -------------------------------------------------------------------------------
>
> Key: LANG-1390
> URL: https://issues.apache.org/jira/browse/LANG-1390
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.7
> Reporter: Jochen Schalanda
> Priority: Minor
>
> Apache Commons Lang offers a variant of the
> [StringUtils#join()|https://commons.apache.org/proper/commons-lang/javadocs/api-3.7/org/apache/commons/lang3/StringUtils.html#join-java.lang.Object:A-java.lang.String-int-int-]
> function which allows specifying the start and end indices which should be
> used to concatenate the elements.
> Unfortunately, this method only works for arrays (as of Apache Commons Lang
> 3.7) but not for lists
> ([java.util.List|https://docs.oracle.com/javase/8/docs/api/java/util/List.html]).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)