T
- the type of factory constructedpublic 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 Factory
s are often compared with each
other for equivalence.
T create()
Copyright © 2014. All Rights Reserved.