You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by François Lecomte <fr...@nereide.fr> on 2013/11/15 18:44:07 UTC

Borders of the isValueActive method

Hi.

(using OFBiz 12.04 revision 1541297)

In EntityUtil.java (here for the same one on OFBiz trunk) there is a
isValueActive method which contains the following test:

if ((thruDate == null || thruDate.after(moment)) && (fromDate == null || fromDate.before(moment) || fromDate.equals(moment))) {
           return true;
       }


Is there a specific reason to include the lower border (fromDate) but
not the upper one? (thruDate)
I am not native English speaker, but I would have expected the upper
border to be included as well. (as per Wiktionary entry for through : up
to and including)
Am I misunderstanding something?


Best regards,

François Lecomte