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

MethodDescription
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:

ParameterTypeDescription
itemCalendarExceptionThe 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:

ParameterTypeDescription
indexint{@inheritDoc}
elementCalendarException{@inheritDoc}

addRange(Iterable<CalendarException> exceptionList)

public final void addRange(Iterable<CalendarException> exceptionList)

Adds range of exceptions to the internal list.

Parameters:

ParameterTypeDescription
exceptionListjava.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:

ParameterTypeDescription
itemjava.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:

ParameterTypeDescription
arrayCalendarException[]the specified one-dimensional array to copy elements to
arrayIndexintthe zero-based index of the specified array at which copying begins.

get(int index)

public CalendarException get(int index)

(@inheritDoc}

Parameters:

ParameterTypeDescription
indexint{@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:

ParameterTypeDescription
itemjava.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:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: CalendarException - {@inheritDoc}

remove(Object item)

public final boolean remove(Object item)

Removes CalendarException instance from this collection.

Parameters:

ParameterTypeDescription
itemjava.lang.ObjectThe 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:

ParameterTypeDescription
indexint{@inheritDoc}
elementCalendarException{@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.