Package org.tensorics.core.tensor.stream
Class TensorCollector<V,T>
- java.lang.Object
-
- org.tensorics.core.tensor.stream.AbstractTensoricCollector<V,T,Tensor<T>>
-
- org.tensorics.core.tensor.stream.TensorCollector<V,T>
-
- Type Parameters:
V
- stream elementsT
- elements of the tensor (will build aTensor<T>
)
public class TensorCollector<V,T> extends AbstractTensoricCollector<V,T,Tensor<T>>
AnAbstractTensoricCollector
implementation to produce a generic tensor
-
-
Constructor Summary
Constructors Constructor Description TensorCollector(java.util.Set<java.lang.Class<?>> dimensions, java.util.function.Function<V,Position> positionMapper, java.util.function.Function<V,T> valueMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<java.util.Map<Position,T>,Tensor<T>>
finisher()
-
Methods inherited from class org.tensorics.core.tensor.stream.AbstractTensoricCollector
accumulator, characteristics, combiner, supplier
-
-