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> rangeOfExceptions)
Adds range of exceptions to the internal list.
|
void |
clear()
Removes all items from the
CalendarExceptionCollection. |
CalendarException |
get(int index)
(@inheritDoc}
|
Calendar |
getParentCalendar()
Returns parent calendar for this object.
|
CalendarException |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object item)
Removes
CalendarException instance from this collection. |
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, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subListaddAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringaddAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean add(CalendarException item)
add in interface Collection<CalendarException>add in interface List<CalendarException>add in class AbstractList<CalendarException>item - CalendarException instance to add.public void add(int index,
CalendarException element)
add in interface List<CalendarException>add in class AbstractList<CalendarException>index - element - public void addRange(Iterable<CalendarException> rangeOfExceptions)
rangeOfExceptions - Range of exceptions to add.public void clear()
CalendarExceptionCollection.clear in interface Collection<CalendarException>clear in interface List<CalendarException>clear in class AbstractList<CalendarException>public CalendarException get(int index)
get in interface List<CalendarException>get in class AbstractList<CalendarException>index - public Calendar getParentCalendar()
Returns parent calendar for this object.
Read only Calendar.
public CalendarException remove(int index)
remove in interface List<CalendarException>remove in class AbstractList<CalendarException>index - public boolean remove(Object item)
CalendarException instance from this collection.remove in interface Collection<CalendarException>remove in interface List<CalendarException>remove in class AbstractCollection<CalendarException>item - CalendarException instance to remove.public final int size()
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 sort(Comparator<? super T> c)
c -