All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 other);

    /**
     * Returns a new matcher which returns {@code true} if either this or the
     * given matcher return {@code true}.
     */
    Matcher or(Matcher other);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy