public abstract class ContainerFactory extends Object implements Factory
Modifier and Type | Field and Description |
---|---|
protected boolean |
useOptimizedContainers |
Constructor and Description |
---|
ContainerFactory() |
Modifier and Type | Method and Description |
---|---|
abstract <T extends Type<T>> |
createContainer(int[] dim,
T type)
This method is called by
Image . |
void |
setOptimizedContainerUse(boolean useOptimizedContainers) |
boolean |
useOptimizedContainers() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorMessage, printProperties, setParameters
public abstract <T extends Type<T>> Container<T> createContainer(int[] dim, T type)
Image
. The ContainerFactory
can decide how to create the Container
,
if it is for example a DirectAccessContainerFactory
it will ask the Type
to create a
suitable Container
for the Type
and the dimensionalityContainer
- the instantiated Containerpublic void setOptimizedContainerUse(boolean useOptimizedContainers)
public boolean useOptimizedContainers()
Copyright © 2015–2021 Fiji. All rights reserved.