Top Description Constructors Methods
com.google.inject.matcher

public abstract Class AbstractMatcher<T>

extends Object
implements Matcher<T>
Class Inheritance
All Implemented Interfaces
com.google.inject.matcher.Matcher
Known Direct Subclasses
com.google.inject.matcher.Matchers.Any, com.google.inject.matcher.Matchers.Not, com.google.inject.matcher.Matchers.AnnotatedWithType, com.google.inject.matcher.Matchers.AnnotatedWith, com.google.inject.matcher.Matchers.SubclassesOf, com.google.inject.matcher.Matchers.Only, com.google.inject.matcher.Matchers.IdenticalTo, com.google.inject.matcher.Matchers.InPackage, com.google.inject.matcher.Matchers.InSubpackage, com.google.inject.matcher.Matchers.Returns, com.google.inject.matcher.Matchers.AndMatcher, com.google.inject.matcher.Matchers.OrMatcher
Annotations
@Deprecated

Deprecated

This class used to be useful to avoid implementing and() and or() yourself, but is no longer necessary now that Matcher implements these methods.

Implements and() and or().
Author
[email protected] (Bob Lee)

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Matcher<T>
and(final Matcher<? super T> other)

Overrides default com.google.inject.matcher.Matcher.and.

Returns a new matcher which returns true if both this and the given matcher return true.
public Matcher<T>
or(Matcher<? super T> other)

Overrides default com.google.inject.matcher.Matcher.or.

Returns a new matcher which returns true if either this or the given matcher return true.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractMatcherback to summary
public AbstractMatcher()

Method Detail

andback to summary
public Matcher<T> and(final Matcher<? super T> other)

Overrides default com.google.inject.matcher.Matcher.and.

Doc from com.google.inject.matcher.Matcher.and.

Returns a new matcher which returns true if both this and the given matcher return true.

Annotations
@Override
orback to summary
public Matcher<T> or(Matcher<? super T> other)

Overrides default com.google.inject.matcher.Matcher.or.

Doc from com.google.inject.matcher.Matcher.or.

Returns a new matcher which returns true if either this or the given matcher return true.

Annotations
@Override