T
- -the type of new instanceK
- -initial value of new instancepublic interface Factory<T,K>
Modifier and Type | Method and Description |
---|---|
T |
create()
use default constructor to generate a new object of T
|
T |
create(K k)
make a new object of type T with an initial value
|