org.apache.commons.collections.functors
Class ExceptionClosure
- Closure, Serializable
public final class ExceptionClosure
Closure implementation that always throws an exception.
Version:
- Stephen Colebourne
- Commons Collections 3.0
INSTANCE
public static final Closure INSTANCE
Singleton predicate instance
execute
public void execute(Object input)
Always throw an exception.
- execute in interface Closure
input
- the input object
getInstance
public static Closure getInstance()
Factory returning the singleton instance.
- the singleton instance
- Commons Collections 3.1
Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.