mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
ninjafix missing ctor for ToDOuble
This commit is contained in:
parent
382f90d34b
commit
d7e3f503f7
@ -39,6 +39,9 @@ public class ToDouble implements LongToDoubleFunction {
|
||||
|
||||
private final LongToDoubleFunction func;
|
||||
|
||||
public ToDouble() {
|
||||
this.func = l -> (double) l;
|
||||
}
|
||||
public ToDouble(Object func) {
|
||||
if (func instanceof Number number) {
|
||||
final double aDouble = number.doubleValue();
|
||||
|
Loading…
Reference in New Issue
Block a user