On 14/11/2009, Hasan Diwan <hasan.di...@gmail.com> wrote: > 2009/11/14 Henri Yandell <flame...@gmail.com>: > > > LANG-470 Add containsAll(Object[], Object[]) methods to ArrayUtils > > > public static containsAll(Object[] first, Object[] second) { > > for (Object o : first) { > if (ArrayUtils.contains(second, o) == false) return false; > } > return ArrayUtils.getLength(first) == ArrayUtils.getLength(second) > > }
AFAICT this does not work for arrays with duplicate entries. > > > LANG-537 Add ArrayUtils.toArray to create generic arrays > > > public static toArray(Object [] o){ > return o; > } > These are needed to be compliant to java.util.Collections. I agree, > both seem a little silly. > > -- > Sent from my mobile device > Envoyait de mon telephone mobil > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org