com.sun.xml.xsom.impl.scd
Class Iterators.Filter<T>

java.lang.Object
  extended by com.sun.xml.xsom.impl.scd.Iterators.Filter<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
Iterators

public abstract static class Iterators.Filter<T>
extends Object

Filter out objects from another iterator.


Constructor Summary
protected Iterators.Filter(Iterator<? extends T> core)
           
 
Method Summary
 boolean hasNext()
           
protected abstract  boolean matches(T value)
          Return true to retain the value.
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iterators.Filter

protected Iterators.Filter(Iterator<? extends T> core)
Method Detail

matches

protected abstract boolean matches(T value)
Return true to retain the value.


hasNext

public boolean hasNext()

next

public T next()

remove

public final void remove()
Specified by:
remove in interface Iterator<T>


Copyright © 2012 Oracle. All Rights Reserved.