net.fortuna.ical4j.model
Class WeekDayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by net.fortuna.ical4j.model.WeekDayList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class WeekDayList
extends ArrayList
implements Serializable

$Id$ [29-May-2004] 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 weekday)
          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, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

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:
true if the week day is added, otherwise false

add

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

Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class ArrayList
Parameters:
weekday - a week day to add
Returns:
true if the week day is added, otherwise false
See Also:
List#add(E)

remove

public final boolean remove(WeekDay weekDay)
Parameters:
weekDay - a day to remove from the list
Returns:
true if the week day is removed, otherwise false

toString

public final String toString()

Overrides:
toString in class AbstractCollection


Copyright © 2004-2012 Micronode. All Rights Reserved.