@Internal public final class ArrayUtil extends java.lang.Object
Modifier and Type | Method and 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.
(将数组中的多个条目移动到数组中的另一个点,并根据需要在它们之间移动。)
|
public static void arrayMoveWithin(java.lang.Object[] array, int moveFrom, int moveTo, int numToMove)
array
- The array to alter
(array - 要更改的数组)
moveFrom
- The (0 based) index of the first entry to move
(moveFrom - 要移动的第一个条目的(基于 0 的)索引)
moveTo
- The (0 based) index of the positition to move to
(moveTo - 要移动到的位置的(基于 0 的)索引)
numToMove
- The number of entries to move
(numToMove - 要移动的条目数)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.