public class TwoDimensionalCharArray extends java.lang.Object implements TwoDimensionalCharAccess
TwoDimensionalCharReadAccess.BaseEMPTY| Constructor and Description |
|---|
TwoDimensionalCharArray(int ySize,
char... values)
Constructor.
|
TwoDimensionalCharArray(int xSize,
int ySize)
Constructor.
|
TwoDimensionalCharArray(int xSize,
int ySize,
IntToCharFunction2 filler)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getValueAt(int ix,
int iy)
Get the value at the given indexes.
|
void |
setValueAt(char 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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeAllValues, changeValueAt, fillValuesByIndex, setElementAt, subAtX, subAtY, transposedasBase, getElementAt, singletonchangeAll, changeAll, createConstant, createIndexed, createNulled, createSupplied, empty, fillByIndex, setElement, zeroX, zeroYequal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIteratorchange, setAll, setFrom, setFrom, setFromempty, linearizedpublic TwoDimensionalCharArray(int xSize,
int ySize)
nul characters.xSize - X size of arrayySize - Y size of arraypublic TwoDimensionalCharArray(int xSize,
int ySize,
@NotNull
IntToCharFunction2 filler)
xSize - X size of arrayySize - Y size of arrayfiller - setter function which provides the value to set for each index combinationTwoDimensionalCharAccess.fillValuesByIndex(IntToCharFunction2)public TwoDimensionalCharArray(int ySize,
char... 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(char value,
int ix,
int iy)
setValueAt in interface TwoDimensionalCharAccessvalue - value to setix - X indexiy - Y indexpublic char getValueAt(int ix,
int iy)
getValueAt in interface TwoDimensionalCharReadAccessix - X indexiy - Y indexpublic int sizeX()
TwoDimensionalReadAccesssizeX in interface TwoDimensionalReadAccess<java.lang.Character>public int sizeY()
TwoDimensionalReadAccesssizeY in interface TwoDimensionalReadAccess<java.lang.Character>