DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26056

[lang] Add methods to ArrayUtils: add at end and insert-like ops





------- Additional Comments From [EMAIL PROTECTED]  2004-01-28 23:40 -------
I think an important point about Collection.add(Object) is that the receiver is
grown by 1. Arrays cannot grow. So either this is oh so obvious or we run a
slight risk of confusion with "add" vs. a differnt name. For example, in:

result1 = ArrayUtils.add(array1, object);
result2 = ArrayUtils.add(array1, array2);

result is a brand new object. If you were dealing with a collection, you would
just add to the receiver. This is the same kind of problem as with Strings,
which cannot grow either. So perhaps this is just such an obvious thing that I
should not worry about it?

It also just so happens that I need an add(Object[],Object[]).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to