List of usage examples for org.apache.commons.collections PredicateUtils nonePredicate
public static Predicate nonePredicate(Collection predicates)
From source file:adalid.commons.util.ColUtils.java
public static <T> Collection<T> noneFilter(Collection<T> collection, Predicate... predicates) { if (collection == null || collection.isEmpty() || predicates == null) { return collection; } else {// w w w . j a v a2 s.co m // Collection<T> list = new ArrayList<T>(); // list.addAll(collection); Collection<T> list = new ArrayList<>(collection); Predicate predicate = PredicateUtils.nonePredicate(predicates); CollectionUtils.filter(list, predicate); return list; } }