byucc.jhdl.base.list
Interface Predicate


public interface Predicate

This interface allows for one-pass iteration while filtering a list. The predicate may be defined as an anonymous class that selects the elements to filter.

Author:
Eric Blake
See Also:
VectorList.filter(Predicate)

Method Summary
 boolean accept(java.lang.Object o)
          Returns true if and only if the object in the list is acceptable to keep.
 

Method Detail

accept

public boolean accept(java.lang.Object o)
Returns true if and only if the object in the list is acceptable to keep.

Parameters:
o - the object being tested
Returns:
true if the object is accepted.


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.