Class ArrayUtil


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

      • arrayMoveWithin

        public static void arrayMoveWithin​(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