@Service public class SimpleDensityPointFactory extends java.lang.Object implements Factory<DensityPoint,Coord>
Constructor and Description |
---|
SimpleDensityPointFactory() |
Modifier and Type | Method and Description |
---|---|
DensityPoint |
create()
use default constructor to generate a new object of T
|
DensityPoint |
create(Coord currentCoord)
make a new object of type T with an initial value
|
public DensityPoint create()
Factory
create
in interface Factory<DensityPoint,Coord>
public DensityPoint create(Coord currentCoord)
Factory
create
in interface Factory<DensityPoint,Coord>
currentCoord
- -initial value for new object