net.fortuna.ical4j.model

Class WeekDayList

Implemented Interfaces:
Serializable

public class WeekDayList
extends ArrayList
implements Serializable

$Id: WeekDayList.java,v 1.14 2008/12/16 12:34:52 fortuna Exp $ [29-May-2004] Defines a list of days.

Constructor Summary

WeekDayList()
Default constructor.
WeekDayList(String aString)
Constructor.
WeekDayList(int initialCapacity)
Creates a new instance with the specified initial capacity.

Method Summary

boolean
add(Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a net.fortuna.ical4j.model.WeekDay.
boolean
add(WeekDay weekDay)
boolean
remove(WeekDay weekDay)
String
toString()

Constructor Details

WeekDayList

public WeekDayList()
Default constructor.

WeekDayList

public WeekDayList(String aString)
Constructor.
Parameters:
aString - a string representation of a day list

WeekDayList

public WeekDayList(int initialCapacity)
Creates a new instance with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity of the list

Method Details

add

public final boolean add(Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a net.fortuna.ical4j.model.WeekDay.
See Also:
List.add(E)

add

public final boolean add(WeekDay weekDay)
Parameters:
weekDay - a day to add to the list
Returns:

remove

public final boolean remove(WeekDay weekDay)
Parameters:
weekDay - a day to remove from the list
Returns:

toString

public final String toString()
See Also:
java.lang.Object.toString()