public class ThreeDimensionalCharArray extends java.lang.Object implements ThreeDimensionalCharAccess
EMPTY| Constructor and Description |
|---|
ThreeDimensionalCharArray(int ySize,
int zSize,
char... values)
Constructor.
|
ThreeDimensionalCharArray(int xSize,
int ySize,
int zSize)
Constructor.
|
ThreeDimensionalCharArray(int xSize,
int ySize,
int zSize,
IntToCharFunction3 filler)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getValueAt(int ix,
int iy,
int iz)
Get the value at the given indexes.
|
void |
setValueAt(char value,
int ix,
int iy,
int iz)
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
|
int |
sizeZ()
Get the number of elements in Z direction
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeAllValues, changeValueAt, fillValuesByIndex, setElementAt, subAtX, subAtY, subAtZgetElementAt, singletonchangeAll, changeAll, empty, fillByIndex, setElementgetElement, getNumDimensions, getNumElements, getSize, getSizes, view, visitAll, visitAllchange, setAll, setFrom, setFrom, setFromempty, linearizedpublic ThreeDimensionalCharArray(int xSize,
int ySize,
int zSize)
nul characters.xSize - X size of arrayySize - Y size of arrayzSize - Z size of arrayThreeDimensionalCharArray(int, int, int, IntToCharFunction3)public ThreeDimensionalCharArray(int xSize,
int ySize,
int zSize,
@NotNull
IntToCharFunction3 filler)
xSize - X size of arrayySize - Y size of arrayzSize - Z size of arrayfiller - setter function which provides the value to set for each index combinationThreeDimensionalCharAccess.fillValuesByIndex(de.caff.generics.function.IntToCharFunction3)public ThreeDimensionalCharArray(int ySize,
int zSize,
char... values)
ySize - size in y directionzSize - size in z directionvalues - values in order, the first zSize values
will become row 0 of plane 0, the second zSize values
row 1, and so on until the first plane of ySize rows is filled.
Then the next plane is filled.
Needs a multiple of ySize*zSize values, and the multiplicator
defines the X size.public void setValueAt(char value,
int ix,
int iy,
int iz)
ThreeDimensionalCharAccesssetValueAt in interface ThreeDimensionalCharAccessvalue - value to setix - X indexiy - Y indexiz - Z indexpublic char getValueAt(int ix,
int iy,
int iz)
ThreeDimensionalCharReadAccessgetValueAt in interface ThreeDimensionalCharReadAccessix - X indexiy - Y indexiz - Z indexpublic int sizeX()
ThreeDimensionalReadAccesssizeX in interface ThreeDimensionalReadAccess<java.lang.Character>public int sizeY()
ThreeDimensionalReadAccesssizeY in interface ThreeDimensionalReadAccess<java.lang.Character>public int sizeZ()
ThreeDimensionalReadAccesssizeZ in interface ThreeDimensionalReadAccess<java.lang.Character>