public class ReadOnlySegmentAwareIterator<E> extends Object implements Iterator<E>
This iterator is used with the other various SegmentAware Collections such as
ReadOnlySegmentAwareCollection
Modifier and Type | Field and Description |
---|---|
protected IntSet |
allowedSegments |
protected Iterator<E> |
iter |
protected E |
next |
protected LocalizedCacheTopology |
topology |
Constructor and Description |
---|
ReadOnlySegmentAwareIterator(Iterator<E> iter,
LocalizedCacheTopology topology,
IntSet allowedSegments) |
Modifier and Type | Method and Description |
---|---|
protected E |
findNext() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
protected boolean |
valueAllowed(Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final LocalizedCacheTopology topology
protected final IntSet allowedSegments
protected E next
public ReadOnlySegmentAwareIterator(Iterator<E> iter, LocalizedCacheTopology topology, IntSet allowedSegments)
Copyright © 2021 JBoss by Red Hat. All rights reserved.