Class IsPredicateMatcher<T>

  • All Implemented Interfaces:
    org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

    public class IsPredicateMatcher<T>
    extends org.hamcrest.BaseMatcher<T>
    A matcher which is able to match via a given predicate.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    See Also:
    Matcher
    • Constructor Summary

      Constructors 
      Constructor Description
      IsPredicateMatcher​(org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,​? extends java.lang.Boolean> equalityPredicate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)  
      boolean matches​(java.lang.Object item)  
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IsPredicateMatcher

        public IsPredicateMatcher​(org.eclipse.xtext.xbase.lib.Functions.Function1<? super T,​? extends java.lang.Boolean> equalityPredicate)
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object item)
      • describeTo

        public void describeTo​(org.hamcrest.Description description)