util
Class FilterProcs

java.lang.Object
  |
  +--util.FilterProcs

public class FilterProcs
extends Object

Using the filter!


Field Summary
static Filter NULL_FILTER
           
 
Constructor Summary
FilterProcs()
           
 
Method Summary
static Collection prune(Collection v, Filter f)
          Apply filter to Collection to get the pruned Collection back.
static Collection prune(Collection v, String s)
          Apply filter to Collection to get the pruned Collection back.
static Vector pruneToVector(Collection v, Filter f)
           
static Filter STRING_FILTER(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_FILTER

public static final Filter NULL_FILTER
Constructor Detail

FilterProcs

public FilterProcs()
Method Detail

STRING_FILTER

public static Filter STRING_FILTER(String s)

prune

public static Collection prune(Collection v,
                               Filter f)
Apply filter to Collection to get the pruned Collection back. Null filter passes everything.

prune

public static Collection prune(Collection v,
                               String s)
Apply filter to Collection to get the pruned Collection back. Make sure toString contains the passed string.

pruneToVector

public static Vector pruneToVector(Collection v,
                                   Filter f)