Class YearRange

  • All Implemented Interfaces:
    TimeRange

    public class YearRange
    extends java.lang.Object
    implements TimeRange
    The Class B2BYearRange.
    • Constructor Summary

      Constructors 
      Constructor Description
      YearRange()  
    • 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.
      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

      • YearRange

        public YearRange()
    • 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)