mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
added adapter functions
This commit is contained in:
@@ -725,6 +725,13 @@ public class AdaptFunctionsFlexibly {
|
||||
return l -> f.apply(l).toString();
|
||||
}
|
||||
|
||||
public static LongToIntFunction adapt(IntToDoubleFunction f, LongToIntFunction i1) {
|
||||
return l -> (int) f.applyAsDouble(((int)l));
|
||||
}
|
||||
|
||||
public static LongToIntFunction adapt(IntToLongFunction f, LongToIntFunction i1) {
|
||||
return l -> (int)(f.applyAsLong((int) l));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user