Class ComplexNDArrayCollector<T extends Number>
- java.lang.Object
-
- io.github.hakkelt.ndarrays.internal.ComplexNDArrayCollector<T>
-
- All Implemented Interfaces:
Collector<Object,List<Object>,NDArray<org.apache.commons.math3.complex.Complex>>
public class ComplexNDArrayCollector<T extends Number> extends Object implements Collector<Object,List<Object>,NDArray<org.apache.commons.math3.complex.Complex>>
Collector to collect values from a stream of Complex values into the specified ComplexNDArray. ComplexNDArray interface requires getCollector function to be implemented and to return a ComplexNDArrayCollector.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Constructor Description ComplexNDArrayCollector(ComplexNDArray<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<org.apache.commons.math3.complex.Complex>>
finisher()
Supplier<List<Object>>
supplier()
-
-
-
Constructor Detail
-
ComplexNDArrayCollector
public ComplexNDArrayCollector(ComplexNDArray<T> destination)
-
-
Method Detail
-
accumulator
public BiConsumer<List<Object>,Object> accumulator()
-
combiner
public BinaryOperator<List<Object>> combiner()
-
characteristics
public Set<Collector.Characteristics> characteristics()
-
-