public class ReadOnlySegmentAwareIterator<E> extends Object implements Iterator<E>
This iterator is used with the other various SegmentAware Collections such as
ReadOnlySegmentAwareSet
Modifier and Type | Field and Description |
---|---|
protected Set<Integer> |
allowedSegments |
protected ConsistentHash |
ch |
protected Iterator<E> |
iter |
protected E |
next |
Constructor and Description |
---|
ReadOnlySegmentAwareIterator(Iterator<E> iter,
ConsistentHash ch,
Set<Integer> 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 ConsistentHash ch
protected E next
public ReadOnlySegmentAwareIterator(Iterator<E> iter, ConsistentHash ch, Set<Integer> allowedSegments)
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.