T - the type of the instance produced by the FactorySerializable, Factory<T>public static class FactoryBuilder.ClassFactory<T> extends Object implements Factory<T>, Serializable
Factory that instantiates a specific Class.| Modifier and Type | Field | Description |
|---|---|---|
static long |
serialVersionUID |
The serialVersionUID required for
Serializable. |
| Constructor | Description |
|---|---|
ClassFactory(Class<T> clazz) |
Constructor for the
FactoryBuilder.ClassFactory. |
ClassFactory(String className) |
Constructor for the
FactoryBuilder.ClassFactory. |
| Modifier and Type | Method | Description |
|---|---|---|
T |
create() |
Constructs and returns a fully configured instance of T.
|
boolean |
equals(Object other) |
|
int |
hashCode() |
public static final long serialVersionUID
Serializable.public ClassFactory(Class<T> clazz)
FactoryBuilder.ClassFactory.clazz - the Class to instantiatepublic ClassFactory(String className)
FactoryBuilder.ClassFactory.className - the name of the Class to instantiateCopyright © 2017. All rights reserved.