Looks good to me Bay - thanks for the info.

James
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 6:22 PM
Subject: Re: Util dependency on Collections?


>
> > Sounds fine with me. Could anyone give me a brief outline of what the
> > methods do - just in case there's some overlap with whats already there.
> > Even just a quick cut'n'paste of Bay's current CollectionUtils class as
is
> > would do...
> >
>
> Compiled from CollectionsUtils.java
> public final class org.apache.commons.util.CollectionsUtils {
>
>     // does its best to index an Object and return the element at
>     // that index. needs to handle primitives.
>     public static java.lang.Object index(java.lang.Object, int);
>     public static java.lang.Object index(java.lang.Object,
> java.lang.Object);
>
>     // does its best to make an iterator for an object.
>     //
>     public static java.util.Iterator getIterator(java.lang.Object);
>
>  // get sub-collection of a collection. need to add an array version too
>     public static java.util.Collection slice(java.util.Collection, int,
> int);
>
>     // reverses an array. nothing fancy.
>     public static void reverseArray(java.lang.Object[]);
> }
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to