Class XArrays

×News: OpenXava 7.7 released - March 9 · Read more
java.lang.Object
org.openxava.util.XArrays

public class XArrays extends Object
Utilities to work with arrays.

Since:
4.5
Author:
Javier Paniza
  • 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 null
      array2 - Can be null
      Since:
      4.5
    • haveSameElements

      public static boolean haveSameElements(Map[] array1, Map[] 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.7
    • move

      public static void move(Object[] array, int from, int to)
      Since:
      5.6
    • isArray

      public static boolean isArray(Object object)