Interface DateRange

  • All Known Implementing Classes:
    StandardDateRange

    public interface DateRange
    Interface of all DateRange implementations.

    DateRanges are used e.g. in PriceFactories if you want to set product prices for different Dates. A simple DateRange implementation is the StandardDateRange which is specified by a start and end date.

    • Method Detail

      • encloses

        boolean encloses​(java.util.Date check)
        Says if this range encloses a given date.
        Parameters:
        check -
        Returns:
        true if the given date lies within this range