use of suite.util.FunUtil2.Source2 in project suite by stupidsing.
the class ChrDblFunUtil method map2.
public static <K1, V1, T> Source2<K1, V1> map2(ChrDbl_Obj<K1> kf0, ChrDbl_Obj<V1> vf0, ChrDblSource source2) {
ChrDbl_Obj<K1> kf1 = kf0.rethrow();
ChrDbl_Obj<V1> vf1 = vf0.rethrow();
ChrDblPair pair1 = ChrDblPair.of((char) 0, (double) 0);
return pair -> {
boolean b = source2.source2(pair1);
if (b)
pair.update(kf1.apply(pair1.t0, pair1.t1), vf1.apply(pair1.t0, pair1.t1));
return b;
};
}
use of suite.util.FunUtil2.Source2 in project suite by stupidsing.
the class ChrDblFunUtil method mapChrDbl.
public static ChrDblSource mapChrDbl(ChrDbl_Chr kf0, ChrDbl_Dbl vf0, ChrDblSource source2) {
ChrDbl_Chr kf1 = kf0.rethrow();
ChrDbl_Dbl vf1 = vf0.rethrow();
ChrDblPair pair1 = ChrDblPair.of((char) 0, (double) 0);
return pair -> {
boolean b = source2.source2(pair1);
if (b)
pair.update(kf1.apply(pair1.t0, pair1.t1), vf1.apply(pair1.t0, pair1.t1));
return b;
};
}
Aggregations