hep.physics.predicate
Class Filter

java.lang.Object
  |
  +--hep.physics.predicate.Filter
All Implemented Interfaces:
java.util.Enumeration

public class Filter
extends java.lang.Object
implements java.util.Enumeration

An enumeration that filters an input enumeration to only accept items that are accepted by a given predicate.


Constructor Summary
Filter(java.util.Enumeration e, Predicate p)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(java.util.Enumeration e,
              Predicate p)
Method Detail

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration