com.google.inject.query
Interface Query<T>

All Known Implementing Classes:
AbstractQuery

public interface Query<T>

Returns true or false for a given input.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 Query<T> and(Query<? super T> other)
          Returns a query which returns true if both this and the given query return true.
 boolean matches(T t)
          Returns true if this query matches t, false otherwise.
 Query<T> or(Query<? super T> other)
          Returns a query which returns true if either this or the given query return true.
 

Method Detail

matches

boolean matches(T t)
Returns true if this query matches t, false otherwise.


and

Query<T> and(Query<? super T> other)
Returns a query which returns true if both this and the given query return true.


or

Query<T> or(Query<? super T> other)
Returns a query which returns true if either this or the given query return true.