Class ArrayUtil


  • @Internal
    public final class ArrayUtil
    extends java.lang.Object
    Utility classes for dealing with arrays.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void arrayMoveWithin​(java.lang.Object[] array, int moveFrom, int moveTo, int numToMove)
      Moves a number of entries in an array to another point in the array, shifting those inbetween as required.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • arrayMoveWithin

        public static void arrayMoveWithin​(java.lang.Object[] array,
                                           int moveFrom,
                                           int moveTo,
                                           int numToMove)
        Moves a number of entries in an array to another point in the array, shifting those inbetween as required.
        Parameters:
        array - The array to alter
        moveFrom - The (0 based) index of the first entry to move
        moveTo - The (0 based) index of the positition to move to
        numToMove - The number of entries to move