Class DynamicBuffer.TableIterator
java.lang.Object
org.jgroups.util.DynamicBuffer.TableIterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
DynamicBuffer<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 by
DynamicBuffer.stream()- Version:
- 3.1
- Author:
- Bela Ban
-
Field Details
-
row
protected int row -
column
protected int column -
current_row
-
from
protected long from -
to
protected final long to
-
-
Constructor Details
-
TableIterator
protected TableIterator() -
TableIterator
protected TableIterator(long from, long to)
-
-
Method Details
-
hasNext
-
next
-