List of usage examples for org.apache.commons.collections.functors NotPredicate getInstance
public static Predicate getInstance(Predicate predicate)
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"); }