public final class ExceptionFactory<T> extends Object implements Factory<T>, Serializable
Modifier and Type | Field and Description |
---|---|
static Factory |
INSTANCE
Singleton predicate instance
|
Modifier and Type | Method and Description |
---|---|
T |
create()
Always throws an exception.
|
static <T> Factory<T> |
exceptionFactory()
Factory returning the singleton instance.
|
public static <T> Factory<T> exceptionFactory()
T
- the type the factory createsCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.