Menu

#46 DMinMax should implement StringCellProcesor

2.2.0
closed
None
1
2014-05-10
2013-09-13
dressen
No

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.

Discussion

  • James Bassett

    James Bassett - 2013-11-20
    • status: open --> pending
    • assigned_to: James Bassett
    • Group: Outstanding --> 2.2.0
     
  • James Bassett

    James Bassett - 2013-11-20

    Fixed in [r293]

     

    Related

    Commit: [r293]

  • James Bassett

    James Bassett - 2014-04-24
    • Status: pending --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.