public class WorkWeekCollection extends AbstractList<T>
Represents a collection of WorkWeek
objects.
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
WorkWeek element)
Inserts the specified element at the specified position in this list.
|
boolean |
add(WorkWeek e)
Adds WorkWeek instance to this collection object.
|
void |
clear() |
boolean |
contains(Object o) |
WorkWeek |
get(int index)
Returns the element at the specified index.
|
Calendar |
getParentCalendar()
Gets the parent calendar.
|
int |
indexOf(Object item) |
boolean |
isReadOnly()
Is collection read-only.
|
Iterator<WorkWeek> |
iterator()
Returns an enumerator for this collection.
|
boolean |
remove(Object item) |
int |
size()
Gets the number of objects contained in this
WorkWeekCollection object. |
void |
sort(Comparator<? super T> c) |
List<WorkWeek> |
toList()
Converts the WorkWeekCollection object to a list of
WorkWeek objects. |
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(WorkWeek e)
Adds WorkWeek instance to this collection object.
add
in interface Collection<WorkWeek>
add
in interface List<WorkWeek>
add
in class AbstractList<WorkWeek>
e
- The item to add.public final void clear()
clear
in interface Collection<WorkWeek>
clear
in interface List<WorkWeek>
clear
in class AbstractList<WorkWeek>
public final boolean contains(Object o)
contains
in interface Collection<WorkWeek>
contains
in interface List<WorkWeek>
contains
in class AbstractCollection<WorkWeek>
o
- public final Calendar getParentCalendar()
Gets the parent calendar.
public final int indexOf(Object item)
public final boolean isReadOnly()
public final boolean remove(Object item)
remove
in interface Collection<WorkWeek>
remove
in interface List<WorkWeek>
remove
in class AbstractCollection<WorkWeek>
public final int size()
Gets the number of objects contained in this WorkWeekCollection
object.
size
in interface Collection<WorkWeek>
size
in interface List<WorkWeek>
size
in class AbstractCollection<WorkWeek>
WorkWeekCollection
object.public final List<WorkWeek> toList()
Converts the WorkWeekCollection object to a list of WorkWeek
objects.
WorkWeek
objects.public void add(int index, WorkWeek element)
public WorkWeek get(int index)
Returns the element at the specified index.
public void sort(Comparator<? super T> c)
c
- Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.