com.mycila.testing.core.introspect
Class Filter<T>

java.lang.Object
  extended by com.mycila.testing.core.introspect.Filter<T>

public abstract class Filter<T>
extends Object

This class is used to select fields or methods more easily. You can implement you own filters or use existing ones from the Filters class and compose them with and, or, not, ...

Author:
Mathieu Carbou (mathieu.carbou@gmail.com)

Field Summary
protected  List<T> elements
           
 
Constructor Summary
Filter()
           
 
Method Summary
protected  boolean accept(T object)
           
 void add(T element)
           
 List<T> select()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected final List<T> elements
Constructor Detail

Filter

public Filter()
Method Detail

select

public List<T> select()

accept

protected boolean accept(T object)

add

public void add(T element)


Copyright © 2008-2011 Mycila. All Rights Reserved.