Class ExportableCalendar

  • All Implemented Interfaces:
    Serializable

    public class ExportableCalendar
    extends Object
    implements Serializable
    An exportable calendar is a collection of events that can be exported in an iCal calendar.
    See Also:
    Serialized Form
    • Method Detail

      • with

        public static ExportableCalendar with​(Collection<CalendarEvent> events)
        Creates a new calendar ready to be exported with the specified calendar events.
        Parameters:
        events - the events to export.
        Returns:
        an exportable calendar.
      • with

        public static ExportableCalendar with​(CalendarEvent... events)
        Creates a new calendar ready to be exported with the specified calendar events.
        Parameters:
        events - the events to export.
        Returns:
        an exportable calendar.
      • getEvents

        public List<CalendarEvent> getEvents()
        Gets the events to export.
        Returns:
        a list of events to export.
      • isEmpty

        public boolean isEmpty()
        Is this exportable calendar is empty?
        Returns:
        true if contains no events.