org.apache.commons.collections.functors
Class ExceptionTransformer

java.lang.Object
  |
  +--org.apache.commons.collections.functors.ExceptionTransformer
All Implemented Interfaces:
Serializable, Transformer

public final class ExceptionTransformer
extends Object
implements Transformer, Serializable

Transformer implementation that always throws an exception.

Since:
Commons Collections 3.0
Version:
$Revision: 1.3 $ $Date: 2004/01/14 21:43:09 $
Author:
Stephen Colebourne
See Also:
Serialized Form

Field Summary
static Transformer INSTANCE
          Singleton predicate instance
 
Method Summary
 Object transform(Object object)
          Always throw an exception.
 
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

transform

public Object transform(Object object)
Always throw an exception.

Specified by:
transform in interface Transformer
Parameters:
object - the object to be transformed
Returns:
a transformed object


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