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