Package gnu.lists
Class Arrays
- java.lang.Object
-
- gnu.lists.Arrays
-
public class Arrays extends Object
-
-
Constructor Summary
Constructors Constructor Description Arrays()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Array<Integer>
asIntArrayOrNull(Object obj)
static <E> void
copy(Array<E> dst, Array<E> src)
static <E> void
fill(Array<E> arr, E value)
static <E> SimpleVector<E>
flattenCopy(Array<E> arr, boolean writable)
static int[]
getDimensions(Array<?> arr)
static int[]
getLowBounds(Array<?> arr)
static <E> E
getRowMajor(Array<E> arr, int index)
static int
hashCode(Array arr)
static void
incrementIndexes(int[] indexes, Array<?> arr)
static int
rowMajorToEffectiveIndex(Array arr, int index)
static <E> GeneralArray<E>
simpleCopy(Array<E> arr, boolean writable)
-
-
-
Method Detail
-
rowMajorToEffectiveIndex
public static int rowMajorToEffectiveIndex(Array arr, int index)
-
getRowMajor
public static <E> E getRowMajor(Array<E> arr, int index)
-
hashCode
public static int hashCode(Array arr)
-
incrementIndexes
public static void incrementIndexes(int[] indexes, Array<?> arr)
-
getDimensions
public static int[] getDimensions(Array<?> arr)
-
getLowBounds
public static int[] getLowBounds(Array<?> arr)
-
fill
public static <E> void fill(Array<E> arr, E value)
-
simpleCopy
public static <E> GeneralArray<E> simpleCopy(Array<E> arr, boolean writable)
-
flattenCopy
public static <E> SimpleVector<E> flattenCopy(Array<E> arr, boolean writable)
-
-