Search in sources :

Example 1 with FltObjMap

use of suite.primitive.adt.map.FltObjMap in project suite by stupidsing.

the class FltOutlet method toListMap.

public <K> FltObjMap<FloatsBuilder> toListMap(Flt_Flt valueFun) {
    FltObjMap<FloatsBuilder> map = new FltObjMap<>();
    float c;
    while ((c = next()) != FltFunUtil.EMPTYVALUE) map.computeIfAbsent(c, k_ -> new FloatsBuilder()).append(valueFun.apply(c));
    return map;
}
Also used : FloatsBuilder(suite.primitive.Floats.FloatsBuilder) FltObjMap(suite.primitive.adt.map.FltObjMap)

Aggregations

FloatsBuilder (suite.primitive.Floats.FloatsBuilder)1 FltObjMap (suite.primitive.adt.map.FltObjMap)1