net.fortuna.ical4j.model
Class WeekDayList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bynet.fortuna.ical4j.model.WeekDayList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class WeekDayList
extends ArrayList
implements Serializable

Defines a list of days.

Author:
Ben Fortuna
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
WeekDayList()
          Default constructor.
WeekDayList(int initialCapacity)
          Creates a new instance with the specified initial capacity.
WeekDayList(String aString)
          Constructor.
 
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()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

WeekDayList

public WeekDayList()
Default constructor.


WeekDayList

public WeekDayList(int initialCapacity)
Creates a new instance with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the list

WeekDayList

public WeekDayList(String aString)
Constructor.

Parameters:
aString - a string representation of a day list
Method Detail

add

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

add

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

Specified by:
add in interface List
See Also:
List#add(E)

remove

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

toString

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