Package com.aspose.tasks
Class CalendarExceptionCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.CalendarExceptionCollection
-
- All Implemented Interfaces:
Iterable<CalendarException>,Collection<CalendarException>,List<CalendarException>
public class CalendarExceptionCollection extends AbstractList<T>
Represents a collection of
CalendarExceptionobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, CalendarException element)Inserts the specified element at the specified position in this list.booleanadd(CalendarException item)Adds CalendarException instance to this collection object.voidaddRange(Iterable<CalendarException> exceptionList)Adds range of exceptions to the internal list.voidclear()Removes all items from theCalendarExceptionCollection.booleancontains(Object item)voidcopyTo(CalendarException[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.CalendarExceptionget(int index)(@inheritDoc}CalendargetParentCalendar()Gets the parent calendar for this object.intindexOf(Object item)Iterator<CalendarException>iterator()Returns an enumerator for this collection.CalendarExceptionremove(int index)Removes the element at the specified position in this list.booleanremove(Object item)RemovesCalendarExceptioninstance from this collection.CalendarExceptionset(int index, CalendarException element)(@inheritDoc}intsize()Gets the number of objects contained in thisCalendarExceptionCollectionobject.voidsort(Comparator<? super T> c)List<CalendarException>toList()Converts the CalendarExceptionCollection object to a list ofCalendarExceptionobjects.-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, 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(CalendarException item)
Adds CalendarException instance to this collection object.
- Specified by:
addin interfaceCollection<CalendarException>- Specified by:
addin interfaceList<CalendarException>- Overrides:
addin classAbstractList<CalendarException>- Parameters:
item- The item to add.- Returns:
-
addRange
public final void addRange(Iterable<CalendarException> exceptionList)
Adds range of exceptions to the internal list.
- Parameters:
exceptionList- Range of exceptions to add.
-
clear
public final void clear()
Removes all items from the
CalendarExceptionCollection.- Specified by:
clearin interfaceCollection<CalendarException>- Specified by:
clearin interfaceList<CalendarException>- Overrides:
clearin classAbstractList<CalendarException>
-
contains
public final boolean contains(Object item)
- Specified by:
containsin interfaceCollection<CalendarException>- Specified by:
containsin interfaceList<CalendarException>- Overrides:
containsin classAbstractCollection<CalendarException>
-
copyTo
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:
array- the specified one-dimensional array to copy elements toarrayIndex- the zero-based index of the specified array at which copying begins.
-
getParentCalendar
public final Calendar getParentCalendar()
Gets the parent calendar for this object.
- Returns:
- the parent calendar for this object.
-
indexOf
public final int indexOf(Object item)
- Specified by:
indexOfin interfaceList<CalendarException>- Overrides:
indexOfin classAbstractList<CalendarException>
-
iterator
public final Iterator<CalendarException> iterator()
Returns an enumerator for this collection.
- Specified by:
iteratorin interfaceCollection<CalendarException>- Specified by:
iteratorin interfaceIterable<CalendarException>- Specified by:
iteratorin interfaceList<CalendarException>- Overrides:
iteratorin classAbstractList<CalendarException>- Returns:
- an enumerator for this collection.
-
remove
public final boolean remove(Object item)
Removes
CalendarExceptioninstance from this collection.- Specified by:
removein interfaceCollection<CalendarException>- Specified by:
removein interfaceList<CalendarException>- Overrides:
removein classAbstractCollection<CalendarException>- Parameters:
item- The item to remove.- Returns:
- true if the specified exception was removed successfully.
-
size
public final int size()
Gets the number of objects contained in this
CalendarExceptionCollectionobject.- Specified by:
sizein interfaceCollection<CalendarException>- Specified by:
sizein interfaceList<CalendarException>- Specified by:
sizein classAbstractCollection<CalendarException>- Returns:
- the number of objects contained in this
CalendarExceptionCollectionobject.
-
toList
public final List<CalendarException> toList()
Converts the CalendarExceptionCollection object to a list of
CalendarExceptionobjects.- Returns:
- List of
CalendarExceptionobjects.
-
add
public void add(int index, CalendarException element)Inserts the specified element at the specified position in this list.- Specified by:
addin interfaceList<CalendarException>- Overrides:
addin classAbstractList<CalendarException>- Parameters:
index-element-
-
get
public CalendarException get(int index)
(@inheritDoc}- Specified by:
getin interfaceList<CalendarException>- Specified by:
getin classAbstractList<CalendarException>- Parameters:
index-- Returns:
-
set
public CalendarException set(int index, CalendarException element)
(@inheritDoc}- Specified by:
setin interfaceList<CalendarException>- Overrides:
setin classAbstractList<CalendarException>- Parameters:
index-element-- Returns:
-
remove
public CalendarException remove(int index)
Removes the element at the specified position in this list.- Specified by:
removein interfaceList<CalendarException>- Overrides:
removein classAbstractList<CalendarException>- Parameters:
index-- Returns:
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-