org.jikesrvm.compilers.opt.util
Class FilterEnumerator<S,T>
java.lang.Object
org.jikesrvm.compilers.opt.util.FilterEnumerator<S,T>
- All Implemented Interfaces:
- Enumeration<T>
public class FilterEnumerator<S,T>
- extends Object
- implements Enumeration<T>
A FilterEnumerator filters and maps a source
Enumeration to generate a new one.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
e
final Enumeration<S> e
f
final FilterEnumerator.Filter<S,T> f
next
private S next
done
private boolean done
FilterEnumerator
public FilterEnumerator(Enumeration<S> e,
FilterEnumerator.Filter<S,T> f)
advance
private void advance()
nextElement
public T nextElement()
- Specified by:
nextElement in interface Enumeration<T>
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface Enumeration<T>