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