Class AbstractMatcher<T>

  • All Implemented Interfaces:
    Matcher<T>

    @Deprecated
    public abstract class AbstractMatcher<T>
    extends 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().
    • 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>