Package org.openxava.util
Class XArrays
java.lang.Object
org.openxava.util.XArrays
Utilities to work with arrays.
- Since:
- 4.5
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhaveSameElements(int[] array1, int[] array2) To know if the two arrays has the same elements.static booleanhaveSameElements(Map[] array1, Map[] array2) To know if the two arrays has the same elements.static booleanstatic void
-
Constructor Details
-
XArrays
public XArrays()
-
-
Method Details
-
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 nullarray2- Can be null- Since:
- 4.5
-
haveSameElements
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 nullarray2- Can be null- Since:
- 4.7
-
move
- Since:
- 5.6
-
isArray
-