|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectshared.array.ProtoArray<ObjectArray<T>,T[],T>
shared.array.ObjectArray<T>
T - the storage type.public class ObjectArray<T>

A multidimensional object array class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface shared.array.Array |
|---|
Array.IndexingOrder |
| Field Summary |
|---|
| Fields inherited from class shared.array.ProtoArray |
|---|
dims, order, strides, values |
| Constructor Summary | |
|---|---|
|
ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int... dims)
Alternate constructor. |
protected |
ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Internal constructor for package use only. |
|
ObjectArray(Class<T> clazz,
int... dims)
Default constructor. |
protected |
ObjectArray(int unused,
Class<T> clazz,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature. |
protected |
ObjectArray(int unused,
T[] values,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature. |
|
ObjectArray(ObjectArray<T> array)
Alternate constructor. |
|
ObjectArray(T[] values,
Array.IndexingOrder order,
int... dims)
Alternate constructor. |
|
ObjectArray(T[] values,
int... dims)
Alternate constructor. |
| Method Summary | |
|---|---|
T |
get(int... s)
Gets the value at the given logical index. |
byte[] |
getBytes()
Converts this array into bytes. |
Class<T> |
getComponentType()
Gets the component type. |
IntegerArray |
iSort(int dim)
Sorts along the given dimension. |
void |
set(T value,
int... s)
Sets the value at the given logical index. |
String |
toString()
Creates a human-readable representation of this array. |
T[] |
values()
Gets the backing values. |
protected ObjectArray<T> |
wrap(Array.IndexingOrder order,
int[] dims,
int[] strides)
Allocates a new array. |
protected ObjectArray<T> |
wrap(T value,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Allocates a new array initialized to the given value. |
| Methods inherited from class shared.array.ProtoArray |
|---|
clone, dimensions, map, ndims, order, physical, reshape, reverse, reverseOrder, shift, size, slice, slice, slice, slice, splice, stride, strides, subarray, tile, transpose |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectArray(Class<T> clazz,
int... dims)
public ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int... dims)
protected ObjectArray(int unused,
Class<T> clazz,
Array.IndexingOrder order,
int[] dims)
public ObjectArray(T[] values,
int... dims)
public ObjectArray(T[] values,
Array.IndexingOrder order,
int... dims)
public ObjectArray(ObjectArray<T> array)
protected ObjectArray(int unused,
T[] values,
Array.IndexingOrder order,
int[] dims)
protected ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int[] dims,
int[] strides)
| Method Detail |
|---|
protected ObjectArray<T> wrap(Array.IndexingOrder order,
int[] dims,
int[] strides)
ProtoArray
wrap in class ProtoArray<ObjectArray<T>,T[],T>order - the storage order.dims - the dimensions.strides - the strides.
protected ObjectArray<T> wrap(T value,
Array.IndexingOrder order,
int[] dims,
int[] strides)
ProtoArray
wrap in class ProtoArray<ObjectArray<T>,T[],T>value - the initial value.order - the storage order.dims - the dimensions.strides - the strides.
public Class<T> getComponentType()
Array
public T get(int... s)
public void set(T value,
int... s)
public T[] values()
ProtoArray
values in class ProtoArray<ObjectArray<T>,T[],T>public byte[] getBytes()
ProtoArraybytes.
getBytes in class ProtoArray<ObjectArray<T>,T[],T>bytes.public String toString()
Array
toString in interface Array<ObjectArray<T>,T>toString in class Objectpublic IntegerArray iSort(int dim)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||