FreeHEP API
Version current

hep.physics.filter
Class Filter

java.lang.Object
  extended byhep.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

Constructor Summary
Filter(Iterator e, Predicate p)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(Iterator e,
              Predicate p)
Method Detail

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.