Class PathMatcher<T,V>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
com.querydsl.collections.PathMatcher<T,V>
Type Parameters:
T - type of the path root
V - type of value being matched
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

public class PathMatcher<T,V> extends org.hamcrest.TypeSafeDiagnosingMatcher<T>
Matches based on the current value of a path.
Author:
Jeroen van Schagen, tiwe
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathMatcher(com.querydsl.core.types.Path<V> path, org.hamcrest.Matcher<? super V> matcher)
     
    PathMatcher(com.querydsl.core.types.Path<V> path, org.hamcrest.Matcher<? super V> matcher, Function<T,V> accessor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    static <T, P> org.hamcrest.Matcher<T>
    hasValue(com.querydsl.core.types.Path<P> path)
     
    static <T, P> org.hamcrest.Matcher<T>
    hasValue(com.querydsl.core.types.Path<P> path, org.hamcrest.Matcher<? super P> matcher)
     
    protected boolean
    matchesSafely(T bean, org.hamcrest.Description mismatchDescription)
     

    Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

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

    • PathMatcher

      public PathMatcher(com.querydsl.core.types.Path<V> path, org.hamcrest.Matcher<? super V> matcher)
    • PathMatcher

      public PathMatcher(com.querydsl.core.types.Path<V> path, org.hamcrest.Matcher<? super V> matcher, Function<T,V> accessor)
  • Method Details

    • hasValue

      public static <T, P> org.hamcrest.Matcher<T> hasValue(com.querydsl.core.types.Path<P> path)
    • hasValue

      public static <T, P> org.hamcrest.Matcher<T> hasValue(com.querydsl.core.types.Path<P> path, org.hamcrest.Matcher<? super P> matcher)
    • matchesSafely

      protected boolean matchesSafely(T bean, org.hamcrest.Description mismatchDescription)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<T>
    • describeTo

      public void describeTo(org.hamcrest.Description description)