Package net.fortuna.ical4j.model
Class WeekDayList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<WeekDay>
-
- net.fortuna.ical4j.model.WeekDayList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<WeekDay>
,Collection<WeekDay>
,List<WeekDay>
,RandomAccess
public class WeekDayList extends ArrayList<WeekDay> implements Serializable
$Id$ [29-May-2004] Defines a list of days.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description WeekDayList()
Default constructor.WeekDayList(int initialCapacity)
Creates a new instance with the specified initial capacity.WeekDayList(String aString)
Constructor.WeekDayList(String aString, boolean stripWhitespace)
Parse a weekday list from a string.WeekDayList(WeekDay... weekDays)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
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.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
WeekDayList
public WeekDayList()
Default constructor.
-
WeekDayList
public WeekDayList(WeekDay... weekDays)
-
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
-
WeekDayList
public WeekDayList(String aString, boolean stripWhitespace)
Parse a weekday list from a string.- Parameters:
aString
- a string representation of a day liststripWhitespace
- remove any whitespace from the string tokens before parsing
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toString
in classAbstractCollection<WeekDay>
-
-