Package net.imglib2.position
Class AbstractFunctionEuclideanSpace<P,T>
- java.lang.Object
-
- net.imglib2.position.AbstractFunctionEuclideanSpace<P,T>
-
- All Implemented Interfaces:
EuclideanSpace
- Direct Known Subclasses:
FunctionRandomAccessible,FunctionRealRandomAccessible
public abstract class AbstractFunctionEuclideanSpace<P,T> extends java.lang.Object implements EuclideanSpace
Abstract base class for functions that generate values through aBiConsumer.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<java.util.function.BiConsumer<P,? super T>>functionSupplierprotected intnprotected java.util.function.Supplier<T>typeSupplier
-
Constructor Summary
Constructors Constructor Description AbstractFunctionEuclideanSpace(int n, java.util.function.BiConsumer<P,? super T> function, java.util.function.Supplier<T> typeSupplier)Simplified constructor if the same function is stateless and can be used concurrently.AbstractFunctionEuclideanSpace(int n, java.util.function.Supplier<java.util.function.BiConsumer<P,? super T>> functionSupplier, java.util.function.Supplier<T> typeSupplier)Constructor for stateful functions that cannot be used concurrently.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnumDimensions()Gets the space's number of dimensions.
-
-
-
Constructor Detail
-
AbstractFunctionEuclideanSpace
public AbstractFunctionEuclideanSpace(int n, java.util.function.Supplier<java.util.function.BiConsumer<P,? super T>> functionSupplier, java.util.function.Supplier<T> typeSupplier)Constructor for stateful functions that cannot be used concurrently.- Parameters:
n-functionSupplier-typeSupplier-
-
AbstractFunctionEuclideanSpace
public AbstractFunctionEuclideanSpace(int n, java.util.function.BiConsumer<P,? super T> function, java.util.function.Supplier<T> typeSupplier)Simplified constructor if the same function is stateless and can be used concurrently.- Parameters:
n-function-typeSupplier-
-
-
Method Detail
-
numDimensions
public int numDimensions()
Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-
-