public class WeekDayCollection extends AbstractList<T>
Represents a collection of WeekDay
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(WeekDay item)
Adds a
WeekDay instance to this object. |
void |
clear()
Clear the WeekDayCollection object.
|
WeekDay |
get(int index)
(@inheritDoc}
|
Calendar |
getParentCalendar()
Gets the parent calendar for this object.
|
WeekDay |
remove(int index) |
boolean |
remove(Object obj) |
int |
size()
Gets the number of objects contained in this
WeekDayCollection object. |
void |
sort(Comparator<? super T> c) |
List<WeekDay> |
toList()
Converts the WeekDayCollection object to a list of
WeekDay objects. |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(WeekDay item)
Adds a WeekDay
instance to this object.
add
in interface Collection<WeekDay>
add
in interface List<WeekDay>
add
in class AbstractList<WeekDay>
item
- WeekDay
instance.public final void clear()
Clear the WeekDayCollection object.
clear
in interface Collection<WeekDay>
clear
in interface List<WeekDay>
clear
in class AbstractList<WeekDay>
public final Calendar getParentCalendar()
public final WeekDay get(int index)
public final boolean remove(Object obj)
remove
in interface Collection<WeekDay>
remove
in interface List<WeekDay>
remove
in class AbstractCollection<WeekDay>
obj
- public final WeekDay remove(int index)
public final int size()
size
in interface Collection<WeekDay>
size
in interface List<WeekDay>
size
in class AbstractCollection<WeekDay>
WeekDayCollection
object.public final List<WeekDay> toList()
Converts the WeekDayCollection object to a list of WeekDay
objects.
WeekDay
objects.public void sort(Comparator<? super T> c)
c
-