| Constructor and Description |
|---|
ExcludingIterator(Iterator<V> base)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
abstract boolean |
isExcluded(V element)
Test if a given element should be excluded from the iteration.
|
V |
next()
Returns the next element in the iteration.
|
void |
remove()
This operation is not supported.
|
public abstract boolean isExcluded(V element)
element - The element to be tested.public boolean hasNext()
next() would return an element rather than
throwing an exception.)public V next()
next in interface Iterator<V>NoSuchElementException - iteration has no more elements.public void remove()
remove in interface Iterator<V>UnsupportedOperationException - always.Copyright © 2017. All rights reserved.