CreatedType
- The type of object that the factory creates.@CodeReview(reviewer="Kevin R. Dixon", date="2008-12-02", changesNeeded=false, comments={"I personally don\'t believe this class will be useful.","However, I will defer... the interface itself is fine."}) public interface Factory<CreatedType>
Factory
interface defines a very general interface for a factory
object that can be used to create some other type of object.Modifier and Type | Method and Description |
---|---|
CreatedType |
create()
Creates a new instance of an object.
|
CreatedType create()