@Immutable public abstract class Array<T> extends Object implements Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Equal if the type and indexFn are equal, doesnt test the contents.
|
abstract T |
get(Index index)
Get the element indicated by Index.
|
abstract T |
get(int... index)
Get the element indicated by the list of multidimensional indices.
|
ArrayType |
getArrayType()
The ArrayType for this Array
|
Index |
getIndex()
An Index that can be used instead of int[], with the same rank as this Array.
|
int |
getRank()
Get the number of dimensions of the array.
|
T |
getScalar()
Get the first element of the Array
|
Section |
getSection()
Get the section: list of Ranges, one for each dimension.
|
int[] |
getShape()
Get the shape: length of array in each dimension.
|
int |
hashCode()
Consistent with equals.
|
boolean |
isVlen()
Is variable length and will be represented by Vlen<T>
|
abstract Iterator<T> |
iterator()
Iterates in canonical order over all the elements of the Array.
|
long |
length()
Get the total number of elements in the array.
|
String |
show() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic abstract Iterator<T> iterator()
public abstract T get(int... index)
index - list of indices, one for each dimension. For vlen, the last is ignored.public abstract T get(Index index)
index - multidimensional indices.public T getScalar()
public ArrayType getArrayType()
public boolean isVlen()
public Index getIndex()
public int getRank()
public int[] getShape()
public Section getSection()
public long length()
public String show()
public boolean equals(Object o)