public class IteratorStatus<K> extends Object implements Iterator<K>
| Constructor and Description |
|---|
IteratorStatus(Collection<K> c) |
IteratorStatus(Iterator<K> delegate) |
public IteratorStatus(Iterator<K> delegate) throws IllegalArgumentException
delegate - the wrapped iteratorIllegalArgumentException - if the wrapped iterator is nullpublic IteratorStatus(Collection<K> c) throws IllegalArgumentException
c - the collection to iterateIllegalArgumentException - if the collection is nullpublic int getIndex()
public boolean isFirst()
throws IllegalStateException
IllegalStateException - if no element has been iterated yetCopyright © 2025 JBoss by Red Hat. All Rights Reserved.