com.contentgrid.spring.querydsl.predicate.None Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contentgrid-spring-querydsl Show documentation
Show all versions of contentgrid-spring-querydsl Show documentation
ContentGrid module for filtering entity collections using QueryDSL
package com.contentgrid.spring.querydsl.predicate;
import com.contentgrid.spring.querydsl.annotation.QuerydslPredicateFactory;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.Predicate;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Stream;
/**
* Creates no predicate under any circumstances
*/
public class None implements QuerydslPredicateFactory, Object> {
@Override
public Stream> boundPaths(Path> path) {
return Stream.empty();
}
@Override
public Optional bind(Path> path, Collection> values) {
return Optional.empty();
}
@Override
public Class