T - the type of factory constructedSerializableFactoryBuilder.ClassFactory, FactoryBuilder.SingletonFactorypublic interface Factory<T> extends Serializable
Implementations may choose not to construct a new instance, but instead return a previously created instance.
Implementations must correctly implement Object.equals(Object) and
Object.hashCode() as Factorys are often compared with each
other for equivalence.
| Modifier and Type | Method | Description |
|---|---|---|
T |
create() |
Constructs and returns a fully configured instance of T.
|
T create()
Copyright © 2017. All rights reserved.