Class AbstractCalendarCommand.CalendarContext

java.lang.Object
org.deltava.commands.AbstractCalendarCommand.CalendarContext
All Implemented Interfaces:
Comparable<Object>, CalendarEntry, TimeSpan
Enclosing class:
AbstractCalendarCommand

protected static final class AbstractCalendarCommand.CalendarContext extends Object implements TimeSpan
Since:
1.0
Version:
8.6
Author:
Luke
  • Constructor Details

    • CalendarContext

      protected CalendarContext(DateRange dr, int days)
  • Method Details

    • getStartTime

      public Instant getStartTime()
      Description copied from interface: TimeSpan
      The start date/time of this span.
      Specified by:
      getStartTime in interface TimeSpan
      Returns:
      the start date/time
    • getEndTime

      public Instant getEndTime()
      Description copied from interface: TimeSpan
      The end date/time of this span.
      Specified by:
      getEndTime in interface TimeSpan
      Returns:
      the end date/time
    • getDate

      public Instant getDate()
      Description copied from interface: CalendarEntry
      Returns this entry's date for ordering in the Calendar.
      Specified by:
      getDate in interface CalendarEntry
      Returns:
      the date/time
    • getRange

      public DateRange getRange()
    • getDays

      public int getDays()
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable<Object>