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
WorkWeekobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, WorkWeek element)Inserts the specified element at the specified position in this list.booleanadd(WorkWeek e)Adds WorkWeek instance to this collection object.voidclear()booleancontains(Object o)WorkWeekget(int index)Returns the element at the specified index.CalendargetParentCalendar()Gets the parent calendar.intindexOf(Object item)booleanisReadOnly()Iterator<WorkWeek>iterator()Returns an enumerator for this collection.booleanremove(Object item)intsize()Gets the number of objects contained in thisWorkWeekCollectionobject.voidsort(Comparator<? super T> c)List<WorkWeek>toList()Converts the WorkWeekCollection object to a list ofWorkWeekobjects.-
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:
addin interfaceCollection<WorkWeek>- Specified by:
addin interfaceList<WorkWeek>- Overrides:
addin classAbstractList<WorkWeek>- Parameters:
e- The item to add.- Returns:
-
clear
public final void clear()
- Specified by:
clearin interfaceCollection<WorkWeek>- Specified by:
clearin interfaceList<WorkWeek>- Overrides:
clearin classAbstractList<WorkWeek>
-
contains
public final boolean contains(Object o)
- Specified by:
containsin interfaceCollection<WorkWeek>- Specified by:
containsin interfaceList<WorkWeek>- Overrides:
containsin 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:
removein interfaceCollection<WorkWeek>- Specified by:
removein interfaceList<WorkWeek>- Overrides:
removein classAbstractCollection<WorkWeek>
-
size
public final int size()
Gets the number of objects contained in this
WorkWeekCollectionobject.- Specified by:
sizein interfaceCollection<WorkWeek>- Specified by:
sizein interfaceList<WorkWeek>- Specified by:
sizein classAbstractCollection<WorkWeek>- Returns:
- the number of objects contained in this
WorkWeekCollectionobject.
-
toList
public final List<WorkWeek> toList()
Converts the WorkWeekCollection object to a list of
WorkWeekobjects.- Returns:
- List of
WorkWeekobjects.
-
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-
-
-