You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2007/01/04 00:45:27 UTC

[jira] Created: (LANG-309) Add ArrayUtils.addFirst methods.

Add ArrayUtils.addFirst methods.
--------------------------------

                 Key: LANG-309
                 URL: https://issues.apache.org/jira/browse/LANG-309
             Project: Commons Lang
          Issue Type: Improvement
    Affects Versions: 2.2
            Reporter: Gary Gregory
            Priority: Minor


Add ArrayUtils.addFirst methods?

This is pretty trivial, implementation wise. I'd like some feedback before implementation. For example, is

ArrayUtils.addFirst (array, newFirstElement);

really better than:

ArrayUtils.add(array, 0, newFirstElement);

?



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-309) Add ArrayUtils.addFirst methods.

Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462109 ] 

Stephen Colebourne commented on LANG-309:
-----------------------------------------

The problem with the arrays methods is that there are a lot of them.

Personally, this one doesn't rock my boat, as writing '0' comes pretty naturally. And I'd say that inserting an item at the start of an array is probably pretty rare anyway.

> Add ArrayUtils.addFirst methods.
> --------------------------------
>
>                 Key: LANG-309
>                 URL: https://issues.apache.org/jira/browse/LANG-309
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Gary Gregory
>            Priority: Minor
>
> Add ArrayUtils.addFirst methods?
> This is pretty trivial, implementation wise. I'd like some feedback before implementation. For example, is
> ArrayUtils.addFirst (array, newFirstElement);
> really better than:
> ArrayUtils.add(array, 0, newFirstElement);
> ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (LANG-309) Add ArrayUtils.addFirst methods.

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462123 ] 

Henri Yandell commented on LANG-309:
------------------------------------

Agreed, seems too trivial to add.

> Add ArrayUtils.addFirst methods.
> --------------------------------
>
>                 Key: LANG-309
>                 URL: https://issues.apache.org/jira/browse/LANG-309
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Gary Gregory
>            Priority: Minor
>
> Add ArrayUtils.addFirst methods?
> This is pretty trivial, implementation wise. I'd like some feedback before implementation. For example, is
> ArrayUtils.addFirst (array, newFirstElement);
> really better than:
> ArrayUtils.add(array, 0, newFirstElement);
> ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Closed: (LANG-309) Add ArrayUtils.addFirst methods.

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-309.
------------------------------

    Resolution: Won't Fix

Closing as WONTFIX due to the two -1s.

> Add ArrayUtils.addFirst methods.
> --------------------------------
>
>                 Key: LANG-309
>                 URL: https://issues.apache.org/jira/browse/LANG-309
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Gary Gregory
>            Priority: Minor
>
> Add ArrayUtils.addFirst methods?
> This is pretty trivial, implementation wise. I'd like some feedback before implementation. For example, is
> ArrayUtils.addFirst (array, newFirstElement);
> really better than:
> ArrayUtils.add(array, 0, newFirstElement);
> ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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