public class WeekDayCollection extends AbstractList<WeekDay>
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}
|
int |
getCount()
Deprecated.
Use size() instead.
|
Calendar |
getParentCalendar()
Returns parent calendar for this object.
|
int |
size()
Returns the number of objects contained in this
WeekDayCollection object. |
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, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@Deprecated public int getCount()
Returns the number of objects contained in this WeekDayCollection
object.
Read only int
.
public boolean add(WeekDay weekDay)
WeekDay
instance to this object.add
in interface Collection<WeekDay>
add
in interface List<WeekDay>
add
in class AbstractList<WeekDay>
weekDay
- WeekDay
instance.public Calendar getParentCalendar()
Returns parent calendar for this object.
Read only Calendar
.
public WeekDay get(int index)
public List<WeekDay> toList()
Converts the WeekDayCollection object to a list of WeekDay
objects.
WeekDay
objects.public 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>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.