public final class ExceptionFactory<T> extends java.lang.Object implements Factory<T>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static Factory |
INSTANCE
Singleton predicate instance
|
private static long |
serialVersionUID
Serial version UID
|
| Modifier | Constructor and Description |
|---|---|
private |
ExceptionFactory()
Restricted constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
create()
Always throws an exception.
|
static <T> Factory<T> |
exceptionFactory()
Factory returning the singleton instance.
|
private java.lang.Object |
readResolve() |
private static final long serialVersionUID
public static final Factory INSTANCE
public static <T> Factory<T> exceptionFactory()
T - the type the factory createspublic T create()
create in interface Factory<T>FunctorException - alwaysprivate java.lang.Object readResolve()