public static <T,P> Matcher<T> hasValue(Path<P> path, Matcher<? super P> matcher) {
        return new PathMatcher<T,P>(path, matcher);
    }
Matches based on the current value of a path.

@author Jeroen van Schagen
@author tiwe

@param <T> type of the path root
@param <V> type of value being matched
querydsl-collections/src/main/java/com/querydsl/collections/PathMatcher.java