public static <T> com.google.common.base.Predicate<T> wrap(Predicate predicate) {
        Path<?> path = predicate.accept(PathExtractor.DEFAULT, null);
        if (path != null) {
            final Evaluator<Boolean> ev = createEvaluator(path.getRoot(), predicate);
            return new com.google.common.base.Predicate<T>() {
                @Override
                public boolean apply(T input) {
                    return ev.evaluate(input);
                }
            };
        } else {
            throw new IllegalArgumentException("No path in " + predicate);
        }
    }
public static < T > com . google . common . base . Predicate < T > wrap ( Predicate predicate ) { Path < ? > path = predicate . accept ( PathExtractor . DEFAULT , null ) ; if ( path != null ) { final Evaluator < Boolean > ev = createEvaluator ( path . getRoot ( ) , predicate ) ; return new com . google . common . base . Predicate < T > ( ) { @ Override public boolean apply ( T input ) { return ev . evaluate ( input ) ; } } ; } else { throw new IllegalArgumentException ( "No path in " + predicate ) ; } }
Wrap a Querydsl predicate into a Guava predicate

@param predicate predicate to wrapped
@return Guava predicate