Package org.jgroups.util
Class Table.TableIterator
- java.lang.Object
-
- org.jgroups.util.Table.TableIterator
-
- All Implemented Interfaces:
java.util.Iterator<T>
protected class Table.TableIterator extends java.lang.Object implements java.util.Iterator<T>
Iterates through all elements of the matrix. The range (from-to) can be defined, default is [hd+1 .. hr] (incl hr). Matrix compactions and resizings will lead to undefined results, as this iterator doesn't maintain a separate ref of the matrix, so it is best to run this with the lock held. This iterator is also used byTable.stream()
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TableIterator()
protected
TableIterator(long from, long to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
-
-
-
Field Detail
-
row
protected int row
-
column
protected int column
-
current_row
protected T[] current_row
-
from
protected long from
-
to
protected final long to
-
-