Top Description Methods
com.google.inject.matcher

public Interface Matcher<T>

Known Direct Implementers
com.google.inject.matcher.AbstractMatcher

Returns true or false for a given input.
Author
[email protected] (Bob Lee)

Method Summary

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

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

public boolean
matches(T t)

Returns true if this matches t, false otherwise.

public default Matcher<T>
or(Matcher<? super T> other)

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

Method Detail

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

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

matchesback to summary
public boolean matches(T t)

Returns true if this matches t, false otherwise.

orback to summary
public default Matcher<T> or(Matcher<? super T> other)

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