Search in sources :

Example 1 with LngObjMap

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

the class LngOutlet method toListMap.

public <K> LngObjMap<LongsBuilder> toListMap(Lng_Lng valueFun) {
    LngObjMap<LongsBuilder> map = new LngObjMap<>();
    long c;
    while ((c = next()) != LngFunUtil.EMPTYVALUE) map.computeIfAbsent(c, k_ -> new LongsBuilder()).append(valueFun.apply(c));
    return map;
}
Also used : LngObjMap(suite.primitive.adt.map.LngObjMap) LongsBuilder(suite.primitive.Longs.LongsBuilder)

Aggregations

LongsBuilder (suite.primitive.Longs.LongsBuilder)1 LngObjMap (suite.primitive.adt.map.LngObjMap)1