Class QuarterRange

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

public class QuarterRange extends Object implements TimeRange
The Class B2BQuarterRange.
  • Constructor Details

    • QuarterRange

      public QuarterRange()
  • 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:
    • getQuarterBorderMonths

      protected Integer[] getQuarterBorderMonths(Calendar calendar)
      Gets the quarter of year as integer.
      Parameters:
      calendar - the calendar
      Returns:
      the quarter