1 16 package org.apache.commons.collections.functors; 17 18 import java.io.Serializable ; 19 20 import org.apache.commons.collections.FunctorException; 21 import org.apache.commons.collections.Predicate; 22 23 31 public final class ExceptionPredicate implements Predicate, Serializable { 32 33 34 static final long serialVersionUID = 7179106032121985545L; 35 36 37 public static final Predicate INSTANCE = new ExceptionPredicate(); 38 39 45 public static Predicate getInstance() { 46 return INSTANCE; 47 } 48 49 52 private ExceptionPredicate() { 53 super(); 54 } 55 56 63 public boolean evaluate(Object object) { 64 throw new FunctorException("ExceptionPredicate invoked"); 65 } 66 67 } 68 | Popular Tags |