Class AbstractFunctionEuclideanSpace<P,T>
java.lang.Object
net.imglib2.position.AbstractFunctionEuclideanSpace<P,T>
- All Implemented Interfaces:
EuclideanSpace
- Direct Known Subclasses:
FunctionRandomAccessible, FunctionRealRandomAccessible
Abstract base class for functions that generate values through a
BiConsumer.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Supplier<BiConsumer<P, ? super T>> protected final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFunctionEuclideanSpace(int n, BiConsumer<P, ? super T> function, Supplier<T> typeSupplier) Simplified constructor if the same function is stateless and can be used concurrently.AbstractFunctionEuclideanSpace(int n, Supplier<BiConsumer<P, ? super T>> functionSupplier, Supplier<T> typeSupplier) Constructor for stateful functions that cannot be used concurrently. -
Method Summary
-
Field Details
-
n
protected final int n -
functionSupplier
-
typeSupplier
-
-
Constructor Details
-
AbstractFunctionEuclideanSpace
-
AbstractFunctionEuclideanSpace
public AbstractFunctionEuclideanSpace(int n, BiConsumer<P, ? super T> function, Supplier<T> typeSupplier) Simplified constructor if the same function is stateless and can be used concurrently.- Parameters:
n-function-typeSupplier-
-
-
Method Details
-
numDimensions
public int numDimensions()Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-