org.eclipse.jpt.utility
Interface Filter<T>

All Known Implementing Classes:
Filter.Disabled, Filter.Null

public interface Filter<T>

Used by various "pluggable" classes to filter objects. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Nested Class Summary
static class Filter.Disabled<S>
           
static class Filter.Null<S>
           
 
Method Summary
 boolean accept(T o)
          Return whether the specified object is "accepted" by the filter.
 

Method Detail

accept

boolean accept(T o)
Return whether the specified object is "accepted" by the filter. The semantics of "accept" is determined by the contract between the client and the server.