1 18 19 package org.objectweb.jac.util; 20 21 import java.util.Collection ; 22 23 public class NotInCollectionPredicate extends Predicate 24 { 25 Collection collection; 26 27 public NotInCollectionPredicate(Collection collection) { 28 this.collection = collection; 29 } 30 31 public boolean apply(Object object) { 32 return !collection.contains(object); 33 } 34 } 35 | Popular Tags |