Package com.querydsl.collections
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 rootV- 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
ConstructorsConstructorDescriptionPathMatcher(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 TypeMethodDescriptionvoiddescribeTo(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 booleanmatchesSafely(T bean, org.hamcrest.Description mismatchDescription) Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
PathMatcher
-
PathMatcher
-
-
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
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<T>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-