Example usage for org.apache.commons.collections.functors FalsePredicate INSTANCE

List of usage examples for org.apache.commons.collections.functors FalsePredicate INSTANCE

Introduction

In this page you can find the example usage for org.apache.commons.collections.functors FalsePredicate INSTANCE.

Prototype

Predicate INSTANCE

To view the source code for org.apache.commons.collections.functors FalsePredicate INSTANCE.

Click Source Link

Document

Singleton predicate instance

Usage

From source file:com.projity.algorithm.SelectFrom.java

public SelectFrom whereInRange(long start, long end) {
    if (start <= end) { // if non backwards range 
        // If there is already a range, intersect with it
        if (wherePredicate != null && wherePredicate instanceof DateInRangePredicate) {
            DateInRangePredicate range = (DateInRangePredicate) wherePredicate;
            range.limitTo(start, end);/*w w  w. ja v a2 s.co m*/
            start = range.getStart();
            end = range.getEnd();
        } else {
            wherePredicate = DateInRangePredicate.getInstance(start, end);
        }
        from(RangeIntervalGenerator.betweenInstance(start, end)); // add a generator assuring the endpoints are treated corrctly
    } else { // take care in cases where range is invalid
        wherePredicate = FalsePredicate.INSTANCE;
    }

    return this;
}

From source file:org.geoserver.wps.hz.FilterToCriteria.java

@Override
public Object visit(ExcludeFilter filter, Object extraData) {
    return FalsePredicate.INSTANCE;
}