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