@Generated(date="2017-07-11T19:16:23+0200",
value="KTypeArrays.java")
public final class IntArrays
extends java.lang.Object
ints.
This is a kind of complement for Arrays.| Modifier and Type | Field and Description |
|---|---|
static int[] |
EMPTY
public static instance of an empty array of
ints. |
| Modifier and Type | Method and Description |
|---|---|
static void |
blankArray(int[] objectArray,
int startIndex,
int endIndex)
Method to blank any int[] array elements to its default value
from [startIndex; endIndex[, equivalent to
Arrays.fill(objectArray, startIndex, endIndex, 0 or null) |
static void |
reverse(int[] table,
int from,
int to)
Reverse the elements positions of the specified range of array table :
|
static void |
reverse(IntIndexedContainer table,
int from,
int to)
Reverse the elements positions of the specified range of IntIndexedContainer table :
|
static void |
rotate(int[] table,
int from,
int mid,
int to)
Rotate utility :
Transforms the range [[slice_1: from; mid - 1][slice_2: mid, to - 1]] of table, into
[[slice_2][slice_1]]in place, i.e swap the two slices while keeping their own internal order.
|
static void |
rotate(IntIndexedContainer table,
int from,
int mid,
int to)
Rotate utility :
Transforms the range [[slice_1: from; mid - 1][slice_2: mid, to - 1]] of IntIndexedContainer, into
[[slice_2][slice_1]] in place, i.e swap the two slices while keeping their own internal order.
|
public static final int[] EMPTY
ints.public static void rotate(int[] table,
int from,
int mid,
int to)
table - from - the start range to considermid - start index of the second sliceto - the array end range, exclusivepublic static void rotate(IntIndexedContainer table, int from, int mid, int to)
table - from - the start range to considermid - start index of the second sliceto - the array end range, exclusivepublic static void reverse(int[] table,
int from,
int to)
table - from - the start range to considerto - the array end range, exclusivepublic static void reverse(IntIndexedContainer table, int from, int to)
table - from - the start range to considerto - the array end range, exclusivepublic static void blankArray(int[] objectArray,
int startIndex,
int endIndex)
Arrays.fill(objectArray, startIndex, endIndex, 0 or null)Copyright © 2017. All rights reserved.