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 Summary

    Modifier and Type
    Method
    Description
    boolean
    encloses(Date check)
    Says if this range encloses a given date.
  • Method Details

    • encloses

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