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