WorkWeekCollection
Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
public class WorkWeekCollection extends AbstractList<WorkWeek>
Represents a collection of WorkWeek objects.
Methods
| Method | Description |
|---|---|
| add(WorkWeek e) | Adds WorkWeek instance to this collection object. |
| add(int index, WorkWeek element) | Inserts the specified element at the specified position in this list. |
| clear() | {@inheritDoc} |
| contains(Object o) | {@inheritDoc} |
| get(int index) | Returns the element at the specified index. |
| getParentCalendar() | Gets the parent calendar. |
| indexOf(Object item) | |
| isReadOnly() | {@inheritDoc} |
| iterator() | Returns an enumerator for this collection. |
| remove(Object item) | |
| size() | Gets the number of objects contained in this WorkWeekCollection object. |
| toList() | Converts the WorkWeekCollection object to a list of WorkWeek objects. |
add(WorkWeek e)
public final boolean add(WorkWeek e)
Adds WorkWeek instance to this collection object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| e | WorkWeek | The item to add. |
Returns: boolean - {@inheritDoc}
add(int index, WorkWeek element)
public void add(int index, WorkWeek element)
Inserts the specified element at the specified position in this list.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | {@inheritDoc} |
| element | WorkWeek | {@inheritDoc} |
clear()
public final void clear()
contains(Object o)
public final boolean contains(Object o)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| o | java.lang.Object | {@inheritDoc} |
Returns: boolean - {@inheritDoc}
get(int index)
public WorkWeek get(int index)
Returns the element at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index of the element to get. |
Returns: WorkWeek - the element at the specified index.
getParentCalendar()
public final Calendar getParentCalendar()
Gets the parent calendar.
Returns: Calendar - the parent calendar.
indexOf(Object item)
public final int indexOf(Object item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | java.lang.Object |
Returns: int
isReadOnly()
public final boolean isReadOnly()
Returns: boolean - {@inheritDoc}
iterator()
public final Iterator<WorkWeek> iterator()
Returns an enumerator for this collection.
Returns: java.util.Iterator<com.aspose.tasks.WorkWeek> - an enumerator for this collection.
remove(Object item)
public final boolean remove(Object item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | java.lang.Object |
Returns: boolean
size()
public final int size()
Gets the number of objects contained in this WorkWeekCollection object.
Returns: int - 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: java.util.List<com.aspose.tasks.WorkWeek> - List of WorkWeek objects.