Package com.aspose.tasks
Class WorkWeekCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.WorkWeekCollection
-
public class WorkWeekCollection extends AbstractList<T>
Represents a collection of
WorkWeek
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Iterator<WorkWeek>
iterator()
Returns an enumerator for this collection.boolean
remove(Object item)
int
size()
Gets the number of objects contained in thisWorkWeekCollection
object.void
sort(Comparator<? super T> c)
List<WorkWeek>
toList()
Converts the WorkWeekCollection object to a list ofWorkWeek
objects.-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, remove, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(WorkWeek e)
Adds WorkWeek instance to this collection object.
- Specified by:
add
in interfaceCollection<WorkWeek>
- Specified by:
add
in interfaceList<WorkWeek>
- Overrides:
add
in classAbstractList<WorkWeek>
- Parameters:
e
- The item to add.- Returns:
-
clear
public final void clear()
- Specified by:
clear
in interfaceCollection<WorkWeek>
- Specified by:
clear
in interfaceList<WorkWeek>
- Overrides:
clear
in classAbstractList<WorkWeek>
-
contains
public final boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<WorkWeek>
- Specified by:
contains
in interfaceList<WorkWeek>
- Overrides:
contains
in classAbstractCollection<WorkWeek>
- Parameters:
o
-- Returns:
-
getParentCalendar
public final Calendar getParentCalendar()
Gets the parent calendar.
- Returns:
- the parent calendar.
-
indexOf
public final int indexOf(Object item)
-
isReadOnly
public final boolean isReadOnly()
- Returns:
-
remove
public final boolean remove(Object item)
- Specified by:
remove
in interfaceCollection<WorkWeek>
- Specified by:
remove
in interfaceList<WorkWeek>
- Overrides:
remove
in classAbstractCollection<WorkWeek>
-
size
public final int size()
Gets the number of objects contained in this
WorkWeekCollection
object.- Specified by:
size
in interfaceCollection<WorkWeek>
- Specified by:
size
in interfaceList<WorkWeek>
- Specified by:
size
in classAbstractCollection<WorkWeek>
- Returns:
- the number of objects contained in this
WorkWeekCollection
object.
-
toList
public final List<WorkWeek> toList()
Converts the WorkWeekCollection object to a list of
WorkWeek
objects.- Returns:
- List of
WorkWeek
objects.
-
add
public void add(int index, WorkWeek element)
Inserts the specified element at the specified position in this list.
-
get
public WorkWeek get(int index)
Returns the element at the specified index.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-