public class ElementNameIterator extends FilterIterator
ElementNameIterator
is a filtering Iterator
which
filters out objects which do not implement the Element
interface and are not of the correct element name.
Modifier and Type | Field and Description |
---|---|
private String |
name |
proxy
Constructor and Description |
---|
ElementNameIterator(Iterator proxy,
String name) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(Object object)
Filter method to perform some matching on the given element.
|
findNext, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ElementNameIterator(Iterator proxy, String name)
protected boolean matches(Object object)
FilterIterator
matches
in class FilterIterator
Element
interfaceWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses