Package com.google.inject.matcher
Interface Matcher<T>
-
- All Known Implementing Classes:
AbstractMatcher,AbstractMatcher.AndMatcher,AbstractMatcher.OrMatcher,Matchers.AnnotatedWith,Matchers.AnnotatedWithType,Matchers.Any,Matchers.IdenticalTo,Matchers.InPackage,Matchers.InSubpackage,Matchers.Not,Matchers.Only,Matchers.Returns,Matchers.SubclassesOf
public interface Matcher<T>Returnstrueorfalsefor a given input.
-
-
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 returnstrueif both this and the given matcher returntrue.booleanmatches(T t)Returnstrueif this matchest,falseotherwise.Matcher<T>or(Matcher<? super T> other)Returns a new matcher which returnstrueif either this or the given matcher returntrue.
-