org.apache.commons.collections.functors
Class ExceptionTransformer<I,O>

java.lang.Object
  extended by org.apache.commons.collections.functors.ExceptionTransformer<I,O>
All Implemented Interfaces:
Serializable, Transformer<I,O>

public final class ExceptionTransformer<I,O>
extends Object
implements Transformer<I,O>, Serializable

Transformer implementation that always throws an exception.

Since:
Commons Collections 3.0
Version:
$Revision: 1.1.1.1 $ $Date: 2005/05/23 04:34:19 $
Author:
Matt Hall, John Watkinson, Stephen Colebourne
See Also:
Serialized Form

Field Summary
static Transformer INSTANCE
          Singleton predicate instance
 
Method Summary
static Transformer getInstance()
          Factory returning the singleton instance.
 O transform(I input)
          Transforms the input to result by cloning it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 O transform(I input)
Transforms the input to result by cloning it.

Specified by:
transform in interface Transformer<I,O>
Parameters:
input - the input object to transform
Returns:
never
Throws:
FunctorException - always


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.