Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.util » [javadoc | source]
public final class: ArrayUtil [javadoc | source]
Method from org.apache.webbeans.util.ArrayUtil Summary:
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.webbeans.util.ArrayUtil Detail:
 public static boolean equalsIgnorePosition(Object[] arr1,
    Object[] arr2) 
    Compare two arrays regardless of the position of the elements in the arrays. The complex handling with temporary flags is necessary due to the possibility of having multiple occurrences of the same element in the arrays. In this case both arrays have to contain the exactly same amount of those elements. This is only suited for smaller arrays (e.g. count < 100) since the algorithm uses a product of both arrays. If one likes to use this for larger arrays, we'd have to use hashes.