org.apache.commons.collections.functors

Class ExceptionFactory

public final class ExceptionFactory extends Object implements Factory, Serializable

Factory 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 FactoryINSTANCE
Singleton predicate instance
Method Summary
Objectcreate()
Always throws an exception.
static FactorygetInstance()
Factory returning the singleton instance.

Field Detail

INSTANCE

public static final Factory INSTANCE
Singleton predicate instance

Method Detail

create

public Object create()
Always throws an exception.

Returns: never

Throws: FunctorException always

getInstance

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

Returns: the singleton instance

Since: Commons Collections 3.1

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