Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class ExceptionTransformer<I, O>

extends Object
implements Transformer<I, O>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Transformer
Imports
java.io.Serializable, org.apache.commons.collections4.FunctorException, .Transformer

Transformer implementation that always throws an exception.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Transformer<I, O>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
ExceptionTransformer()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public static <
the input type
I
,
the output type
O
>
Transformer<I, O>

Returns:

the singleton instance
exceptionTransformer
()

Factory returning the singleton instance.

private Object
public O

Returns:

never
transform
(final I
the input object to transform
input
)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by cloning it.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Transformer<I, O> INSTANCE

Singleton predicate instance

Annotations
@SuppressWarnings:rawtypes
serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

ExceptionTransformerback to summary
private ExceptionTransformer()

Restricted constructor.

Method Detail

exceptionTransformerback to summary
public static <I, O> Transformer<I, O> exceptionTransformer()

Factory returning the singleton instance.

Parameters
<I>
the input type
<O>
the output type
Returns:Transformer<I, O>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()
transformback to summary
public O transform(final I input)

Implements org.apache.commons.collections4.Transformer.transform.

Transforms the input to result by cloning it.

Parameters
input:I

the input object to transform

Returns:O

never

Annotations
@Override
Exceptions
FunctorException:
always