FieldMatrixChangingVisitor interface.
This class is a convenience to create custom visitors without defining all methods. This class provides default implementations that do nothing.
| Modifier and Type | Field and Description |
|---|---|
| private final T | zero
Zero element of the field. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | end()
Implements org. End visiting a matrix. |
| public void | start(int
number of rows of the matrix rows, int number of columns of the matrix columns, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index (inclusive) endColumn)Implements org. Start visiting a matrix. |
| public T | visit(int
row index of the entry row, int column index of the entry column, T current value of the entry value)Implements org. Visit one matrix entry. |
| zero | back to summary |
|---|---|
| private final T zero Zero element of the field. | |
| DefaultFieldMatrixChangingVisitor | back to summary |
|---|---|
| public DefaultFieldMatrixChangingVisitor(final T zero) Build a new instance.
| |
| end | back to summary |
|---|---|
| public T end() Implements org. Doc from org. End visiting a matrix. This method is called once after all entries of the matrix have been visited.
| |
| start | back to summary |
|---|---|
| public void start(int rows, int columns, int startRow, int endRow, int startColumn, int endColumn) Implements org. Doc from org. Start visiting a matrix. This method is called once before any entry of the matrix is visited.
| |
| visit | back to summary |
|---|---|
| public T visit(int row, int column, T value) Implements org. Doc from org. Visit one matrix entry.
| |