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