Example usage for org.apache.commons.collections4 PredicateUtils nonePredicate

List of usage examples for org.apache.commons.collections4 PredicateUtils nonePredicate

Introduction

In this page you can find the example usage for org.apache.commons.collections4 PredicateUtils nonePredicate.

Prototype

public static <T> Predicate<T> nonePredicate(final Collection<? extends Predicate<T>> predicates) 

Source Link

Document

Create a new Predicate that returns true if none of the specified predicates are true.

Usage

From source file:br.usp.poli.lta.cereda.aa.execution.Kernel.java

/**
 * Obtm as transies com consumo de smbolo a partir da consulta corrente.
 * @param query Consulta./*from  ww  w  . j a  va  2s.  c  om*/
 * @return Lista de transies.
 */
private List<Transition> getSymbolTransitions(List<Transition> query) {
    Predicate[] chain = new Predicate[] { new EpsilonPredicate(), new SubmachineCallPredicate() };
    Collection<Transition> result = CollectionUtils.select(query, PredicateUtils.nonePredicate(chain));
    return new ArrayList<>(result);
}