Class WeekRange

java.lang.Object
de.hybris.platform.b2b.util.WeekRange
All Implemented Interfaces:
TimeRange

public class WeekRange extends Object implements TimeRange
The Class B2BWeekRange.
  • Constructor Details

    • WeekRange

      public WeekRange()
  • Method Details

    • getEndOfRange

      public Calendar getEndOfRange(Calendar calendar)
      Description copied from interface: TimeRange
      Gets the end of range. It is assumed that hour, minute and second in return Calendar object is set to 23:59:59.
      Specified by:
      getEndOfRange in interface TimeRange
      Parameters:
      calendar - object to determines current date/time, which is base date/time for calculations
      Returns:
      the end of range
      See Also:
    • getStartOfRange

      public Calendar getStartOfRange(Calendar calendar)
      Description copied from interface: TimeRange
      Gets the start of range. It is assumed that hour, minute and second in return Calendar object is set to 00:00:00.
      Specified by:
      getStartOfRange in interface TimeRange
      Parameters:
      calendar - object to determines current date and time, which is base date/time for calculations
      Returns:
      the start of range
      See Also:
    • getLastDayOfWeek

      protected Calendar getLastDayOfWeek(Calendar cal)
      Gets the last day of week as Calendar object.
      Parameters:
      cal - the cal
      Returns:
      the last day of week