public class DefaultVectorFactoryContainer extends AbstractCloneableSerializable implements VectorFactoryContainer
VectorFactoryContainer
interface.
A useful base class for implementing classes that contain vector factories.Modifier and Type | Field and Description |
---|---|
protected VectorFactory<? extends Vector> |
vectorFactory
The vector factory used to create new vectors.
|
Constructor and Description |
---|
DefaultVectorFactoryContainer()
Creates a new
DefaultVectorFactoryContainer . |
DefaultVectorFactoryContainer(VectorFactory<? extends Vector> vectorFactory)
Creates a new
DefaultVectorFactoryContainer with the given factory. |
Modifier and Type | Method and Description |
---|---|
VectorFactory<? extends Vector> |
getVectorFactory()
Gets the vector factory the object to use to create new vectors.
|
void |
setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
Sets the vector factory for the object to use to create new vectors.
|
clone
protected VectorFactory<? extends Vector> vectorFactory
public DefaultVectorFactoryContainer()
DefaultVectorFactoryContainer
.public DefaultVectorFactoryContainer(VectorFactory<? extends Vector> vectorFactory)
DefaultVectorFactoryContainer
with the given factory.vectorFactory
- The vector factory to use to create vectors.public VectorFactory<? extends Vector> getVectorFactory()
getVectorFactory
in interface VectorFactoryContainer
public void setVectorFactory(VectorFactory<? extends Vector> vectorFactory)
vectorFactory
- The vector factory.