Package com.google.inject.matcher
Interface Matcher<T>
-
- All Known Implementing Classes:
AbstractMatcher
public interface Matcher<T>
Returnstrue
orfalse
for a given input.- Author:
- crazybob@google.com (Bob Lee)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Matcher<T>
and(Matcher<? super T> other)
Returns a new matcher which returnstrue
if both this and the given matcher returntrue
.boolean
matches(T t)
Returnstrue
if this matchest
,false
otherwise.Matcher<T>
or(Matcher<? super T> other)
Returns a new matcher which returnstrue
if either this or the given matcher returntrue
.
-