Class ElasticsearchMatchers.HasPropertyLambdaMatcher<T,​V>

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

    public static class ElasticsearchMatchers.HasPropertyLambdaMatcher<T,​V>
    extends org.hamcrest.FeatureMatcher<T,​V>
    • Method Summary

      Modifier and Type Method Description
      protected V featureValueOf​(T actual)  
      static <T,​V>
      org.hamcrest.core.CombinableMatcher<T>
      hasProperty​(java.util.function.Function<? super T,​? extends V> property, org.hamcrest.Matcher<V> valueMatcher)  
      • Methods inherited from class org.hamcrest.FeatureMatcher

        describeTo, matchesSafely
      • Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

        describeMismatch, matches
      • Methods inherited from class org.hamcrest.BaseMatcher

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

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

      • featureValueOf

        protected V featureValueOf​(T actual)
        Specified by:
        featureValueOf in class org.hamcrest.FeatureMatcher<T,​V>
      • hasProperty

        public static <T,​V> org.hamcrest.core.CombinableMatcher<T> hasProperty​(java.util.function.Function<? super T,​? extends V> property,
                                                                                     org.hamcrest.Matcher<V> valueMatcher)
        Parameters:
        valueMatcher - The matcher to apply to the property
        property - The lambda to fetch property