2009/11/14 Henri Yandell <[email protected]>:
> 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)
}

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to