Class DateIntervalConstraint

    • Constructor Detail

      • DateIntervalConstraint

        public DateIntervalConstraint​(Object minDate,
                                      boolean includingMin,
                                      Object maxDate,
                                      boolean includingMax)
        Use null value to disable a bound.

        Bounds could be any Date or Calendar. Bounds also support Number types whose long value is recognised as number of milliseconds since January 1, 1970, 00:00:00 GMT. Bounds finally supports String having YYYY-MM-DD format.

        Invalid bound (wrong format) would be ignored with log warning.

        Parameters:
        minDate - The lower bound of the interval
        includingMin - true if the lower bound is included in the interval
        maxDate - The upper bound of the interval
        includingMax - true if the upper bound is included in the interval