public class TwoDimensionalLongArray extends TwoDimensionalLongReadAccess.Base implements TwoDimensionalLongAccess
TwoDimensionalLongReadAccess.BaseEMPTY| Constructor and Description |
|---|
TwoDimensionalLongArray(int xSize,
int ySize)
Constructor.
|
TwoDimensionalLongArray(int ySize,
long... values)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getValueAt(int ix,
int iy)
Get the value at the given indexes.
|
void |
setValueAt(long value,
int ix,
int iy)
Set the value at the given indexes.
|
int |
sizeX()
Get the number of elements in X direction.
|
int |
sizeY()
Get the number of elements in Y direction
|
asBaseequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitchangeAllValues, changeValueAt, fillValuesByIndex, setElementAt, subAtX, subAtY, transposedasBase, getElementAtchangeAll, changeAll, createConstant, createIndexed, createNulled, createSupplied, empty, fillByIndex, setElement, zeroX, zeroYequal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, singleton, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIteratorchange, setAll, setFrom, setFrom, setFromempty, linearizedpublic TwoDimensionalLongArray(int xSize,
int ySize)
xSize - X size of arrayySize - Y size of arraypublic TwoDimensionalLongArray(int ySize,
long... values)
ySize - size in y directionvalues - values in order, the first ySize values
will become row 0, the second ySize values
row 1, and so on. Needs a multiple of ySize values.public void setValueAt(long value,
int ix,
int iy)
setValueAt in interface TwoDimensionalLongAccessvalue - value to setix - X indexiy - Y indexpublic long getValueAt(int ix,
int iy)
getValueAt in interface TwoDimensionalLongReadAccessix - X indexiy - Y indexpublic int sizeX()
TwoDimensionalReadAccesssizeX in interface TwoDimensionalReadAccess<java.lang.Long>public int sizeY()
TwoDimensionalReadAccesssizeY in interface TwoDimensionalReadAccess<java.lang.Long>