com.infomancers.collections.util
Interface Predicate<T>

All Known Implementing Classes:
InCollection, PredicateCollection, PredicateNegation

public interface Predicate<T>

Used to encapsulate a boolean query on an item.


Method Summary
 boolean evaluate(T item)
          Evaluates an item to see if it fits the boolean query.
 

Method Detail

evaluate

boolean evaluate(T item)
Evaluates an item to see if it fits the boolean query.

Parameters:
item - The item to evaluate.
Returns:
Whether the item fits the query.