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

public final Class ExceptionFactory<T>

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

Factory implementation that always throws an exception.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Factory<T>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
ExceptionFactory()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

never
create
()

Implements org.apache.commons.collections4.Factory.create.

Always throws an exception.
public static <
the type the factory creates
T
>
Factory<T>

Returns:

the singleton instance
exceptionFactory
()

Factory returning the singleton instance.

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Factory<T> INSTANCE

Singleton predicate instance

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

Serial version UID

Constructor Detail

ExceptionFactoryback to summary
private ExceptionFactory()

Restricted constructor.

Method Detail

createback to summary
public T create()

Implements org.apache.commons.collections4.Factory.create.

Always throws an exception.

Returns:T

never

Annotations
@Override
Exceptions
FunctorException:
always
exceptionFactoryback to summary
public static <T> Factory<T> exceptionFactory()

Factory returning the singleton instance.

Parameters
<T>
the type the factory creates
Returns:Factory<T>

the singleton instance

Since
3.1
readResolveback to summary
private Object readResolve()