org.apache.commons.collections.functors

Class ExceptionClosure

public final class ExceptionClosure extends Object implements Closure, Serializable

Closure implementation that always throws an exception.

Since: Commons Collections 3.0

Version: $Revision: 348444 $ $Date: 2005-11-23 14:06:56 +0000 (Wed, 23 Nov 2005) $

Author: Stephen Colebourne

Field Summary
static ClosureINSTANCE
Singleton predicate instance
Method Summary
voidexecute(Object input)
Always throw an exception.
static ClosuregetInstance()
Factory returning the singleton instance.

Field Detail

INSTANCE

public static final Closure INSTANCE
Singleton predicate instance

Method Detail

execute

public void execute(Object input)
Always throw an exception.

Parameters: input the input object

Throws: FunctorException always

getInstance

public static Closure getInstance()
Factory returning the singleton instance.

Returns: the singleton instance

Since: Commons Collections 3.1

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