net.sf.molae.pipe.filter
Interface TypedPredicate<T>

All Known Implementing Classes:
ContainmentFilter, KeyFilter, LeafFilter, Not, PredicateProxy, SubSetFilter, TransformedFilter

public interface TypedPredicate<T>

Defines a predicate that is only implemented for a specific class.

Since:
2.0

Method Summary
 boolean evaluate(T object)
          Checks if the specified object fulfils a condition.
 

Method Detail

evaluate

boolean evaluate(T object)
Checks if the specified object fulfils a condition.

Parameters:
object - the object to evaluate, should not be changed
Returns:
result of evaluation
Throws:
ClassCastException - if the input is the wrong class
IllegalArgumentException - if the input is invalid