public interface TwoDimensionalBooleanAccess extends TwoDimensionalBooleanReadAccess, TwoDimensionalAccess<java.lang.Boolean>
TwoDimensionalBooleanReadAccess.Base
Modifier and Type | Field and Description |
---|---|
static TwoDimensionalBooleanAccess |
EMPTY
Empty 2dimensional boolean access.
|
Modifier and Type | Method and Description |
---|---|
default void |
changeAllValues(BooleanOperator1 operator)
Change all values by applying an operator.
|
default void |
changeValueAt(BooleanOperator1 operator,
int ix,
int iy)
Change the value at the given indexes.
|
default void |
fillValuesByIndex(IntPredicate2 setter)
Set all values depending on their indexes.
|
default void |
setElementAt(java.lang.Boolean element,
int ix,
int iy)
Set the element at the given indexes.
|
void |
setValueAt(boolean value,
int ix,
int iy)
Set the value at the given indexes.
|
default OneDimensionalBooleanAccess |
subAtX(int ix)
Get a 1-dimensional view of the row at the given X index.
|
default OneDimensionalBooleanAccess |
subAtY(int iy)
Get a 1-dimensional view of the column at the given X index.
|
default TwoDimensionalBooleanAccess |
transposed()
Get a transposed view of this 2-dimensional read access.
|
asBase, getElementAt, getValueAt, singleton
changeAll, changeAll, createConstant, createIndexed, createNulled, createSupplied, empty, fillByIndex, setElement, zeroX, zeroY
equal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, sizeX, sizeY, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIterator
change, setAll, setFrom, setFrom, setFrom
empty, linearized
static final TwoDimensionalBooleanAccess EMPTY
void setValueAt(boolean value, int ix, int iy)
value
- value to setix
- X indexiy
- Y indexdefault void changeValueAt(@NotNull BooleanOperator1 operator, int ix, int iy)
operator
- operator to apply to the valueix
- X indexiy
- Y indexdefault void changeAllValues(@NotNull BooleanOperator1 operator)
operator
- operator to applydefault void fillValuesByIndex(@NotNull IntPredicate2 setter)
setter
- setter which provides the value to set for each index combinationdefault void setElementAt(@NotNull java.lang.Boolean element, int ix, int iy)
TwoDimensionalAccess
setElementAt
in interface TwoDimensionalAccess<java.lang.Boolean>
element
- element to setix
- index in X direction from 0
(included) to TwoDimensionalReadAccess.sizeX()
(excluded)iy
- index in Y direction from 0
(included) to TwoDimensionalReadAccess.sizeY()
(excluded)@NotNull default OneDimensionalBooleanAccess subAtX(int ix)
TwoDimensionalReadAccess
subAtX
in interface TwoDimensionalAccess<java.lang.Boolean>
subAtX
in interface TwoDimensionalBooleanReadAccess
subAtX
in interface TwoDimensionalReadAccess<java.lang.Boolean>
ix
- X indexix
@NotNull default OneDimensionalBooleanAccess subAtY(int iy)
TwoDimensionalReadAccess
subAtY
in interface TwoDimensionalAccess<java.lang.Boolean>
subAtY
in interface TwoDimensionalBooleanReadAccess
subAtY
in interface TwoDimensionalReadAccess<java.lang.Boolean>
iy
- Y indexiy
@NotNull default TwoDimensionalBooleanAccess transposed()
TwoDimensionalReadAccess
transposed
in interface TwoDimensionalAccess<java.lang.Boolean>
transposed
in interface TwoDimensionalBooleanReadAccess
transposed
in interface TwoDimensionalReadAccess<java.lang.Boolean>