org.apache.commons.collections.functors

Class ExceptionPredicate

Implemented Interfaces:
Predicate, Serializable

public final class ExceptionPredicate
extends java.lang.Object
implements Predicate, Serializable

Predicate implementation that always throws an exception.
Version:
$Revision: 1.7 $ $Date: 2004/05/16 11:16:01 $
Author:
Stephen Colebourne
Since:
Commons Collections 3.0

Field Summary

static Predicate
INSTANCE
Singleton predicate instance

Method Summary

boolean
evaluate(Object object)
Evaluates the predicate always throwing an exception.
static Predicate
getInstance()
Factory returning the singleton instance.

Field Details

INSTANCE

public static final Predicate INSTANCE
Singleton predicate instance

Method Details

evaluate

public boolean evaluate(Object object)
Evaluates the predicate always throwing an exception.
Specified by:
evaluate in interface Predicate
Parameters:
object - the input object
Returns:
never

getInstance

public static Predicate getInstance()
Factory returning the singleton instance.
Returns:
the singleton instance
Since:
Commons Collections 3.1

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.