V
- the type of the values of the tensoric objectpublic interface Tensoric<V>
Modifier and Type | Method and Description |
---|---|
default boolean |
contains(java.lang.Object... coordinates)
Convenience method for
contains(Position) , with the position constructed from the given coordinates. |
boolean |
contains(Position position)
Returns
true if the tensoric object contains the given position, false otherwise. |
default V |
get(java.lang.Object... coordinates) |
V |
get(Position position) |
V get(Position position)
position
- the position in the N-dimensional space where to find the value.java.lang.IllegalArgumentException
- when number of coordinates is not sufficientjava.util.NoSuchElementException
- if the tensor contains no element for the given positiondefault V get(java.lang.Object... coordinates)
coordinates
- form N-dimensional space where to find the value.java.lang.IllegalArgumentException
- if the number of coordinates in incorrectjava.util.NoSuchElementException
- if the tensor contains no element for the position constructed from the
given coordinates.boolean contains(Position position)
true
if the tensoric object contains the given position, false
otherwise.position
- the position to be checkedtrue
if the position is contained in the tensoric object, false
otherwise.default boolean contains(java.lang.Object... coordinates)
contains(Position)
, with the position constructed from the given coordinates.coordinates
- the coordinates which represent the position to be checkedtrue
if the position represented by the given coordinates is contained in the tensoric object,
false
otherwise.