Package io.inugami.commons.data
Class AggregatorHelper
- java.lang.Object
-
- io.inugami.commons.data.AggregatorHelper
-
public class AggregatorHelper extends Object
Aggregator- Since:
- 8 nov. 2017
-
-
Constructor Summary
Constructors Constructor Description AggregatorHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Record
keepRecord(double value, long timestamp, Record previousRecord, String unit)
<R extends Number>
RsumGenericType(R ref, R newValue)
<N extends Number,K>
Map<K,N>sumMap(Map<K,N> ref, Map<K,N> newValue)
<R extends Number,T>
RsumObject(T ref, T newValue, Function<T,R> extractor)
-
-
-
Method Detail
-
sumGenericType
public <R extends Number> R sumGenericType(R ref, R newValue)
-
-