com.google.inject.matcher.Matcher Maven / Gradle / Ivy
package com.google.inject.matcher;
/**
* Returns {@code true} or {@code false} for a given input.
*/
public interface Matcher {
/**
* Returns {@code true} if this matches {@code t}, {@code false} otherwise.
*/
boolean matches(T t);
/**
* Returns a new matcher which returns {@code true} if both this and the
* given matcher return {@code true}.
*/
Matcher and(Matcher super T> other);
/**
* Returns a new matcher which returns {@code true} if either this or the
* given matcher return {@code true}.
*/
Matcher or(Matcher super T> other);
}