Class DateList

java.lang.Object
net.fortuna.ical4j.model.DateList
All Implemented Interfaces:
Serializable, Iterable<Date>, Collection<Date>, List<Date>

public class DateList extends Object implements List<Date>, Serializable, Iterable<Date>
$Id$ [23-Apr-2004] Defines a list of iCalendar dates. If no value type is specified a list defaults to DATE-TIME instances.
See Also:
  • Constructor Details

    • DateList

      public DateList()
      Default constructor.
    • DateList

      public DateList(boolean unmodifiable)
    • DateList

      public DateList(Value aType)
      Parameters:
      aType - the type of dates contained by the instance
    • DateList

      public DateList(Value aType, TimeZone timezone)
      Default constructor.
      Parameters:
      aType - specifies the type of dates (either date or date-time)
      timezone - the timezone to apply to dates contained by the instance
    • DateList

      public DateList(String aValue, Value aType) throws ParseException
      Parameters:
      aValue - a string representation of a date list
      aType - the date types contained in the instance
      Throws:
      ParseException - where the specified string is not a valid date list
    • DateList

      public DateList(String aValue, Value aType, TimeZone timezone) throws ParseException
      Parses the specified string representation to create a list of dates.
      Parameters:
      aValue - a string representation of a list of dates
      aType - specifies the type of dates (either date or date-time)
      timezone - the timezone to apply to contained dates
      Throws:
      ParseException - if an invalid date representation exists in the date list string
    • DateList

      public DateList(DateList list, Value type)
      Constructs a new date list of the specified type containing the dates in the specified list.
      Parameters:
      list - a list of dates to include in the new list
      type - the type of the new list
  • Method Details