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
CalendarException
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, CalendarException element)
Inserts the specified element at the specified position in this list.boolean
add(CalendarException item)
Adds CalendarException instance to this collection object.void
addRange(Iterable<CalendarException> exceptionList)
Adds range of exceptions to the internal list.void
clear()
Removes all items from theCalendarExceptionCollection
.boolean
contains(Object item)
void
copyTo(CalendarException[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.CalendarException
get(int index)
(@inheritDoc}Calendar
getParentCalendar()
Gets the parent calendar for this object.int
indexOf(Object item)
Iterator<CalendarException>
iterator()
Returns an enumerator for this collection.CalendarException
remove(int index)
Removes the element at the specified position in this list.boolean
remove(Object item)
RemovesCalendarException
instance from this collection.CalendarException
set(int index, CalendarException element)
(@inheritDoc}int
size()
Gets the number of objects contained in thisCalendarExceptionCollection
object.void
sort(Comparator<? super T> c)
List<CalendarException>
toList()
Converts the CalendarExceptionCollection object to a list ofCalendarException
objects.-
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:
add
in interfaceCollection<CalendarException>
- Specified by:
add
in interfaceList<CalendarException>
- Overrides:
add
in 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:
clear
in interfaceCollection<CalendarException>
- Specified by:
clear
in interfaceList<CalendarException>
- Overrides:
clear
in classAbstractList<CalendarException>
-
contains
public final boolean contains(Object item)
- Specified by:
contains
in interfaceCollection<CalendarException>
- Specified by:
contains
in interfaceList<CalendarException>
- Overrides:
contains
in 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:
indexOf
in interfaceList<CalendarException>
- Overrides:
indexOf
in classAbstractList<CalendarException>
-
iterator
public final Iterator<CalendarException> iterator()
Returns an enumerator for this collection.
- Specified by:
iterator
in interfaceCollection<CalendarException>
- Specified by:
iterator
in interfaceIterable<CalendarException>
- Specified by:
iterator
in interfaceList<CalendarException>
- Overrides:
iterator
in classAbstractList<CalendarException>
- Returns:
- an enumerator for this collection.
-
remove
public final boolean remove(Object item)
Removes
CalendarException
instance from this collection.- Specified by:
remove
in interfaceCollection<CalendarException>
- Specified by:
remove
in interfaceList<CalendarException>
- Overrides:
remove
in 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
CalendarExceptionCollection
object.- Specified by:
size
in interfaceCollection<CalendarException>
- Specified by:
size
in interfaceList<CalendarException>
- Specified by:
size
in classAbstractCollection<CalendarException>
- Returns:
- 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:
- List of
CalendarException
objects.
-
add
public void add(int index, CalendarException element)
Inserts the specified element at the specified position in this list.- Specified by:
add
in interfaceList<CalendarException>
- Overrides:
add
in classAbstractList<CalendarException>
- Parameters:
index
-element
-
-
get
public CalendarException get(int index)
(@inheritDoc}- Specified by:
get
in interfaceList<CalendarException>
- Specified by:
get
in classAbstractList<CalendarException>
- Parameters:
index
-- Returns:
-
set
public CalendarException set(int index, CalendarException element)
(@inheritDoc}- Specified by:
set
in interfaceList<CalendarException>
- Overrides:
set
in classAbstractList<CalendarException>
- Parameters:
index
-element
-- Returns:
-
remove
public CalendarException remove(int index)
Removes the element at the specified position in this list.- Specified by:
remove
in interfaceList<CalendarException>
- Overrides:
remove
in classAbstractList<CalendarException>
- Parameters:
index
-- Returns:
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-