DMinMax should implement StringCellProcesor. It cannot be used when chained with a StringCellprocessor. The following code is currently invalid:
return new Optional(new Trim(new StrReplace("free", "0", new DMinMax(0.0, DMinMax.MAX_DOUBLE))));
Other Double processors work, such as ParseDouble. Creating a simple class that extends DMinMax solves the problem:
public class DMinMaxString extends DMinMax implements StringCellProcessor {
public DMinMaxString(double min, double max, DoubleCellProcessor next) {
super(min, max, next);
}
public DMinMaxString(double min, double max) {
super(min, max);
}
}
Version used: 2.1.0
Thanks for making a great API.
Fixed in [r293]
Related
Commit: [r293]