CalendarExceptionCollection
Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
public class CalendarExceptionCollection extends AbstractList<CalendarException>
Represents a collection of CalendarException objects.
Methods
Method | Description |
---|---|
add(CalendarException item) | Adds CalendarException instance to this collection object. |
add(int index, CalendarException element) | Inserts the specified element at the specified position in this list. |
addRange(Iterable<CalendarException> exceptionList) | Adds range of exceptions to the internal list. |
clear() | Removes all items from the CalendarExceptionCollection. |
contains(Object item) | |
copyTo(CalendarException[] array, int arrayIndex) | Copies the elements of this collection to the specified array, starting at the specified array index. |
get(int index) | (@inheritDoc} |
getParentCalendar() | Gets the parent calendar for this object. |
indexOf(Object item) | |
iterator() | Returns an enumerator for this collection. |
remove(int index) | Removes the element at the specified position in this list. |
remove(Object item) | Removes CalendarException instance from this collection. |
set(int index, CalendarException element) | (@inheritDoc} |
size() | Gets the number of objects contained in this CalendarExceptionCollection object. |
toList() | Converts the CalendarExceptionCollection object to a list of CalendarException objects. |
add(CalendarException item)
public final boolean add(CalendarException item)
Adds CalendarException instance to this collection object.
Parameters:
Parameter | Type | Description |
---|---|---|
item | CalendarException | The item to add. |
Returns: boolean - {@inheritDoc}
add(int index, CalendarException element)
public void add(int index, CalendarException element)
Inserts the specified element at the specified position in this list.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
element | CalendarException | {@inheritDoc} |
addRange(Iterable<CalendarException> exceptionList)
public final void addRange(Iterable<CalendarException> exceptionList)
Adds range of exceptions to the internal list.
Parameters:
Parameter | Type | Description |
---|---|---|
exceptionList | java.lang.Iterable<com.aspose.tasks.CalendarException> | Range of exceptions to add. |
clear()
public final void clear()
Removes all items from the CalendarExceptionCollection.
contains(Object item)
public final boolean contains(Object item)
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object |
Returns: boolean
copyTo(CalendarException[] array, int arrayIndex)
public final void copyTo(CalendarException[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
Parameters:
Parameter | Type | Description |
---|---|---|
array | CalendarException[] | the specified one-dimensional array to copy elements to |
arrayIndex | int | the zero-based index of the specified array at which copying begins. |
get(int index)
public CalendarException get(int index)
(@inheritDoc}
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
Returns: CalendarException - {@inheritDoc}
getParentCalendar()
public final Calendar getParentCalendar()
Gets the parent calendar for this object.
Returns: Calendar - the parent calendar for this object.
indexOf(Object item)
public final int indexOf(Object item)
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object |
Returns: int
iterator()
public final Iterator<CalendarException> iterator()
Returns an enumerator for this collection.
Returns: java.util.Iterator<com.aspose.tasks.CalendarException> - an enumerator for this collection.
remove(int index)
public CalendarException remove(int index)
Removes the element at the specified position in this list.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
Returns: CalendarException - {@inheritDoc}
remove(Object item)
public final boolean remove(Object item)
Removes CalendarException instance from this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | The item to remove. |
Returns: boolean - true if the specified exception was removed successfully.
set(int index, CalendarException element)
public CalendarException set(int index, CalendarException element)
(@inheritDoc}
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
element | CalendarException | {@inheritDoc} |
Returns: CalendarException - {@inheritDoc}
size()
public final int size()
Gets the number of objects contained in this CalendarExceptionCollection object.
Returns: int - the number of objects contained in this CalendarExceptionCollection object.
toList()
public final List<CalendarException> toList()
Converts the CalendarExceptionCollection object to a list of CalendarException objects.
Returns: java.util.List<com.aspose.tasks.CalendarException> - List of CalendarException objects.