hep.physics.filter
Class Filter
java.lang.Object
hep.physics.filter.Filter
- All Implemented Interfaces:
- Iterator
- public class Filter
- extends Object
- implements Iterator
An iterator that filters an input iterator to only accept items that are
accepted by a given predicate.
- Source Code:
- Filter.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Filter
public Filter(Iterator e,
Predicate p)
next
public Object next()
- Specified by:
next
in interface Iterator
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
Copyright © 2000-2004 FreeHEP, All Rights Reserved.