Class RealNDArrayCollector<T extends Number>
- java.lang.Object
-
- io.github.hakkelt.ndarrays.internal.RealNDArrayCollector<T>
-
public class RealNDArrayCollector<T extends Number> extends Object implements Collector<Object,List<Object>,NDArray<T>>
Collector to collect values from a stream of Number values into the specified NDArray. NDArray interface requires getCollector function to be implemented and to return a NDArrayCollector.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Constructor Description RealNDArrayCollector(NDArray<T> destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<List<Object>,Object>
accumulator()
Set<Collector.Characteristics>
characteristics()
BinaryOperator<List<Object>>
combiner()
Function<List<Object>,NDArray<T>>
finisher()
Supplier<List<Object>>
supplier()
-
-
-
Method Detail
-
accumulator
public BiConsumer<List<Object>,Object> accumulator()
-
combiner
public BinaryOperator<List<Object>> combiner()
-
characteristics
public Set<Collector.Characteristics> characteristics()
-
-