public class CalendarExceptionCollection extends AbstractList<T>
Represents a collection of CalendarException
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(CalendarException item)
Adds CalendarException instance to this collection object.
|
void |
add(int index,
CalendarException element)
Inserts the specified element at the specified position in this list.
|
void |
addRange(Iterable<CalendarException> exceptionList)
Adds range of exceptions to the internal list.
|
void |
clear()
Removes all items from the
CalendarExceptionCollection . |
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)
Removes
CalendarException instance from this collection. |
CalendarException |
set(int index,
CalendarException element)
(@inheritDoc}
|
int |
size()
Gets the number of objects contained in this
CalendarExceptionCollection object. |
void |
sort(Comparator<? super T> c) |
List<CalendarException> |
toList()
Converts the CalendarExceptionCollection object to a list of
CalendarException objects. |
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(CalendarException item)
Adds CalendarException instance to this collection object.
add
in interface Collection<CalendarException>
add
in interface List<CalendarException>
add
in class AbstractList<CalendarException>
item
- The item to add.public final void addRange(Iterable<CalendarException> exceptionList)
Adds range of exceptions to the internal list.
exceptionList
- Range of exceptions to add.public final void clear()
Removes all items from the CalendarExceptionCollection
.
clear
in interface Collection<CalendarException>
clear
in interface List<CalendarException>
clear
in class AbstractList<CalendarException>
public final boolean contains(Object item)
contains
in interface Collection<CalendarException>
contains
in interface List<CalendarException>
contains
in class AbstractCollection<CalendarException>
public final void copyTo(CalendarException[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public final Calendar getParentCalendar()
Gets the parent calendar for this object.
public final int indexOf(Object item)
indexOf
in interface List<CalendarException>
indexOf
in class AbstractList<CalendarException>
public final Iterator<CalendarException> iterator()
Returns an enumerator for this collection.
iterator
in interface Iterable<CalendarException>
iterator
in interface Collection<CalendarException>
iterator
in interface List<CalendarException>
iterator
in class AbstractList<CalendarException>
public final boolean remove(Object item)
Removes CalendarException
instance from this collection.
remove
in interface Collection<CalendarException>
remove
in interface List<CalendarException>
remove
in class AbstractCollection<CalendarException>
item
- The item to remove.public final int size()
Gets the number of objects contained in this CalendarExceptionCollection
object.
size
in interface Collection<CalendarException>
size
in interface List<CalendarException>
size
in class AbstractCollection<CalendarException>
CalendarExceptionCollection
object.public final List<CalendarException> toList()
Converts the CalendarExceptionCollection object to a list of CalendarException
objects.
CalendarException
objects.public void add(int index, CalendarException element)
add
in interface List<CalendarException>
add
in class AbstractList<CalendarException>
index
- element
- public CalendarException get(int index)
get
in interface List<CalendarException>
get
in class AbstractList<CalendarException>
index
- public CalendarException set(int index, CalendarException element)
set
in interface List<CalendarException>
set
in class AbstractList<CalendarException>
index
- element
- public CalendarException remove(int index)
remove
in interface List<CalendarException>
remove
in class AbstractList<CalendarException>
index
- public void sort(Comparator<? super T> c)
c
-