DataType
- The type of data for the factory.public static class DefaultDataDistribution.DefaultFactory<DataType> extends AbstractCloneableSerializable implements Factory<DefaultDataDistribution<DataType>>
DefaultDataDistribution
objects using some given
initial capacity for them.Modifier and Type | Field and Description |
---|---|
protected int |
initialDomainCapacity
The initial domain capacity.
|
Constructor and Description |
---|
DefaultFactory()
Creates a new
DefaultFactory with a default
initial domain capacity. |
DefaultFactory(int initialDomainCapacity)
Creates a new
DefaultFactory with a given
initial domain capacity. |
Modifier and Type | Method and Description |
---|---|
DefaultDataDistribution<DataType> |
create()
Creates a new instance of an object.
|
int |
getInitialDomainCapacity()
Gets the initial domain capacity.
|
void |
setInitialDomainCapacity(int initialDomainCapacity)
Sets the initial domain capacity.
|
clone
public DefaultFactory()
DefaultFactory
with a default
initial domain capacity.public DefaultFactory(int initialDomainCapacity)
DefaultFactory
with a given
initial domain capacity.initialDomainCapacity
- The initial capacity for the domain. Must be positive.public DefaultDataDistribution<DataType> create()
Factory
create
in interface Factory<DefaultDataDistribution<DataType>>
public int getInitialDomainCapacity()
public void setInitialDomainCapacity(int initialDomainCapacity)
initialDomainCapacity
- The initial domain capacity. Must be positive.