Interface TimeSpan

All Superinterfaces:
CalendarEntry, Comparable<Object>
All Known Implementing Classes:
AbstractCalendarCommand.CalendarContext, ACARSFlightReport, ConnectionEntry, DispatchConnectionEntry, DispatchScheduleEntry, Event, FDRFlightReport, FlightInfo, InstructionBusy, InstructionSession, NetworkOutage, SimFDRFlightReport, XACARSFlightReport, XAFlightInfo

public interface TimeSpan extends CalendarEntry
An interface to describe beans with a start and an end time.
Since:
3.1
Version:
11.6
Author:
Luke
  • Method Details

    • getStartTime

      Instant getStartTime()
      The start date/time of this span.
      Returns:
      the start date/time
    • getEndTime

      Instant getEndTime()
      The end date/time of this span.
      Returns:
      the end date/time
    • getDuration

      default Duration getDuration()
      The duration of this span, or null if both times are not set.
      Returns:
      a Duration, or null
    • hasTimes

      default boolean hasTimes()
      Returns whether the start and end times are populated.
      Returns:
      TRUE if both are populated, otherwise FALSE