Example usage for org.apache.commons.collections.functors NotPredicate getInstance

List of usage examples for org.apache.commons.collections.functors NotPredicate getInstance

Introduction

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

Prototype

public static Predicate getInstance(Predicate predicate) 

Source Link

Document

Factory to create the not predicate.

Usage

From source file:org.springmodules.validation.valang.parser.ValangParser.java

final public Predicate not(Function fieldFunction) throws ParseException {
    Predicate predicate = null;/*from w w  w.  java2s.  c  o m*/
    jj_consume_token(NOT);
    predicate = expression(fieldFunction);
    {
        if (true)
            return NotPredicate.getInstance(predicate);
    }
    throw new Error("Missing return statement in function");
}