org.openxava.util
Class XArrays

java.lang.Object
  extended by org.openxava.util.XArrays

public class XArrays
extends java.lang.Object

Utilities to work with arrays.

Since:
4.5
Author:
Javier Paniza

Constructor Summary
XArrays()
           
 
Method Summary
static boolean haveSameElements(int[] array1, int[] array2)
          To know if the two arrays has the same elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XArrays

public XArrays()
Method Detail

haveSameElements

public static boolean haveSameElements(int[] array1,
                                       int[] array2)
To know if the two arrays has the same elements.

The order does not matter, a null arrays has the same elements than an arrays with 0 elements.

Parameters:
array1 - Can be null
array2 - Can be null
Since:
4.5