public class WeekDayList
extends java.util.ArrayList
implements java.io.Serializable
Constructor and Description |
---|
WeekDayList()
Default constructor.
|
WeekDayList(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
WeekDayList(java.lang.String aString)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.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) |
java.lang.String |
toString() |
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
public WeekDayList()
public WeekDayList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic WeekDayList(java.lang.String aString)
aString
- a string representation of a day listpublic final boolean add(WeekDay weekDay)
weekDay
- a day to add to the listpublic final boolean add(java.lang.Object weekday)
IllegalArgumentException
where argument is not a net.fortuna.ical4j.model.WeekDay
.add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
weekday
- a week day to addList.add(Object)
public final boolean remove(WeekDay weekDay)
weekDay
- a day to remove from the listpublic final java.lang.String toString()
toString
in class java.util.AbstractCollection
Copyright © 2004-2015 Micronode. All Rights Reserved.