org.apache.commons.collections.functors

Class ExceptionTransformer

public final class ExceptionTransformer extends Object implements Transformer, Serializable

Transformer 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 TransformerINSTANCE
Singleton predicate instance
Method Summary
static TransformergetInstance()
Factory returning the singleton instance.
Objecttransform(Object input)
Transforms the input to result by cloning it.

Field Detail

INSTANCE

public static final Transformer INSTANCE
Singleton predicate instance

Method Detail

getInstance

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

Returns: the singleton instance

Since: Commons Collections 3.1

transform

public Object transform(Object input)
Transforms the input to result by cloning it.

Parameters: input the input object to transform

Returns: never

Throws: FunctorException always

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