public class WeekDayCollection extends AbstractList<T>
Represents a collection of WeekDay
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(WeekDay weekDay)
Adds a
WeekDay instance to this object. |
WeekDay |
get(int index)
(@inheritDoc}
|
Calendar |
getParentCalendar()
Gets the parent calendar for this object.
|
int |
size()
Returns 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, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(WeekDay weekDay)
Adds a WeekDay
instance to this object.
add
in interface Collection<WeekDay>
add
in interface List<WeekDay>
add
in class AbstractList<WeekDay>
weekDay
- WeekDay
instance.public WeekDay get(int index)
public final Calendar getParentCalendar()
public final int size()
Returns the number of objects contained in this WeekDayCollection
object.
Read only int
.
size
in interface Collection<WeekDay>
size
in interface List<WeekDay>
size
in class AbstractCollection<WeekDay>
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
- Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.