Package de.gsi.dataset.spi.utils
Class MultiArrayBoolean.MultiArray2DBoolean
- java.lang.Object
-
- de.gsi.dataset.spi.utils.MultiArray<boolean[]>
-
- de.gsi.dataset.spi.utils.MultiArrayBoolean
-
- de.gsi.dataset.spi.utils.MultiArrayBoolean.MultiArray2DBoolean
-
- Enclosing class:
- MultiArrayBoolean
public static class MultiArrayBoolean.MultiArray2DBoolean extends MultiArrayBoolean
Specialisation for the 2D case to allow for easier and more efficient usage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gsi.dataset.spi.utils.MultiArrayBoolean
MultiArrayBoolean.MultiArray1DBoolean, MultiArrayBoolean.MultiArray2DBoolean
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.utils.MultiArray
dimensions, elements, offset, strides
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiArray2DBoolean(boolean[] elements, int[] dimensions, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget(int row, int column)boolean[]getRow(int row)voidset(int row, int column, boolean value)-
Methods inherited from class de.gsi.dataset.spi.utils.MultiArrayBoolean
allocate, equals, get, getStrided, hashCode, set, setStrided, wrap, wrap, wrap, wrap
-
Methods inherited from class de.gsi.dataset.spi.utils.MultiArray
elements, getDimensions, getElementsCount, getIndex, getIndices, getOffset, toString, wrap, wrap, wrap, wrap
-
-
-
-
Method Detail
-
get
public boolean get(int row, int column)- Parameters:
row- rowIndexcolumn- columnIndex- Returns:
- value at M(rowIndex,columnIndex)
-
set
public void set(int row, int column, boolean value)- Parameters:
row- rowIndexcolumn- columnIndexvalue- new value: M(rowIndex,columnIndex) == value
-
getRow
public boolean[] getRow(int row)
-
-