Class WeekRange

  • All Implemented Interfaces:
    TimeRange

    public class WeekRange
    extends java.lang.Object
    implements TimeRange
    The Class B2BWeekRange.
    • Constructor Summary

      Constructors 
      Constructor Description
      WeekRange()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Calendar getEndOfRange​(java.util.Calendar calendar)
      Gets the end of range.
      protected java.util.Calendar getLastDayOfWeek​(java.util.Calendar cal)
      Gets the last day of week as Calendar object.
      java.util.Calendar getStartOfRange​(java.util.Calendar calendar)
      Gets the start of range.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeekRange

        public WeekRange()
    • Method Detail

      • getEndOfRange

        public java.util.Calendar getEndOfRange​(java.util.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:
        TimeRange.getEndOfRange(Calendar)
      • getStartOfRange

        public java.util.Calendar getStartOfRange​(java.util.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:
        TimeRange.getStartOfRange(Calendar)
      • getLastDayOfWeek

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