|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory<T>
Factory
for the factory pattern. Encapsulates methods
for creating and copying objects of a certain class.
Method Summary | |
---|---|
T |
create()
Create a new object of class T . |
T |
create(T t)
Create a new object of class T , as a copy of
t . |
Method Detail |
---|
T create()
T
. Corresponds to a
default constructor.
T create(T t)
T
, as a copy of
t
. Corresponds to a copy constructor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |