Class AbstractMatcher<T>

  • All Implemented Interfaces:
    Matcher<T>

    @Deprecated
    public abstract class AbstractMatcher<T>
    extends java.lang.Object
    implements Matcher<T>
    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:
    crazybob@google.com (Bob Lee)
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMatcher()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Matcher<T> and​(Matcher<? super T> other)
      Deprecated.
      Returns a new matcher which returns true if both this and the given matcher return true.
      Matcher<T> or​(Matcher<? super T> other)
      Deprecated.
      Returns a new matcher which returns true if either this or the given matcher return true.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.inject.matcher.Matcher

        matches
    • Constructor Detail

      • AbstractMatcher

        public AbstractMatcher()
        Deprecated.
    • Method Detail

      • and

        public Matcher<T> and​(Matcher<? super T> other)
        Deprecated.
        Description copied from interface: Matcher
        Returns a new matcher which returns true if both this and the given matcher return true.
        Specified by:
        and in interface Matcher<T>
      • or

        public Matcher<T> or​(Matcher<? super T> other)
        Deprecated.
        Description copied from interface: Matcher
        Returns a new matcher which returns true if either this or the given matcher return true.
        Specified by:
        or in interface Matcher<T>