public interface TwoDimensionalByteReadAccess extends TwoDimensionalReadAccess<java.lang.Byte>
Modifier and Type | Interface and Description |
---|---|
static class |
TwoDimensionalByteReadAccess.Base
Base class implementing this interface which provides useful
default methods for
Object.toString() , Object.equals(Object) ,
and Object.hashCode() . |
Modifier and Type | Field and Description |
---|---|
static TwoDimensionalByteReadAccess |
EMPTY
Empty 2dimensional byte read access.
|
Modifier and Type | Method and Description |
---|---|
default TwoDimensionalByteReadAccess.Base |
asBase()
Get a view of this 2-dimensional access which provides useful defaults for standard object methods.
|
default java.lang.Byte |
getElementAt(int ix,
int iy)
Get the element at the given indexes.
|
byte |
getValueAt(int ix,
int iy)
Get the value at the given indexes.
|
static TwoDimensionalByteReadAccess |
singleton(byte singleElement)
Get a 2dimensional byte read access for a single element.
|
default OneDimensionalByteReadAccess |
subAtX(int ix)
Get a 1-dimensional view of the row at the given X index.
|
default OneDimensionalByteReadAccess |
subAtY(int iy)
Get a 1-dimensional view of the column at the given X index.
|
default TwoDimensionalByteReadAccess |
transposed()
Get a transposed view of this 2-dimensional read access.
|
empty, equal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, sizeX, sizeY, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIterator
empty, linearized
static final TwoDimensionalByteReadAccess EMPTY
byte getValueAt(int ix, int iy)
ix
- X indexiy
- Y index@NotNull default java.lang.Byte getElementAt(int ix, int iy)
TwoDimensionalReadAccess
getElementAt
in interface TwoDimensionalReadAccess<java.lang.Byte>
ix
- 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 OneDimensionalByteReadAccess subAtX(int ix)
TwoDimensionalReadAccess
subAtX
in interface TwoDimensionalReadAccess<java.lang.Byte>
ix
- X indexix
@NotNull default OneDimensionalByteReadAccess subAtY(int iy)
TwoDimensionalReadAccess
subAtY
in interface TwoDimensionalReadAccess<java.lang.Byte>
iy
- Y indexiy
@NotNull default TwoDimensionalByteReadAccess transposed()
TwoDimensionalReadAccess
transposed
in interface TwoDimensionalReadAccess<java.lang.Byte>
@NotNull default TwoDimensionalByteReadAccess.Base asBase()
asBase
in interface TwoDimensionalReadAccess<java.lang.Byte>
@NotNull static TwoDimensionalByteReadAccess singleton(byte singleElement)
singleton
in interface TwoDimensionalReadAccess<java.lang.Byte>
singleElement
- single element