commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-660) Add methods to insert arrays into arrays at an index
Date Sat, 03 May 2014 17:15:16 GMT

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

Duncan Jones commented on LANG-660:
-----------------------------------

Just to be clear, we plan to deprecate one method and add one for each type?

{code:java}
@Deprecated
public static byte[] add(final byte[] array, final int index, final byte element)

// new
public static byte[] insert(int index, byte[] array, byte... values);
{code}

> Add methods to insert arrays into arrays at an index
> ----------------------------------------------------
>
>                 Key: LANG-660
>                 URL: https://issues.apache.org/jira/browse/LANG-660
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 2.5
>            Reporter: Aaron Digulla
>            Priority: Minor
>             Fix For: Review Patch
>
>         Attachments: ArrayUtils.txt, ArrayUtilsAddTest.txt, ArrayUtilsAddTest_addAll.patch,
ArrayUtils_addAll.patch
>
>
> Please add methods with this signature: ArrayUtils.addAll(int[] target, int index, int[]
source) (i.e. insert an array into an array at a certain position).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message