public class CalendarExceptionCollection extends AbstractList<CalendarException>
Represents a collection of CalendarException
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(CalendarException exception)
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}
|
int |
getCount()
Deprecated.
Use size() instead.
|
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 exception)
Removes
CalendarException instance from this collection. |
int |
size()
Returns the number of objects contained in this
CalendarExceptionCollection object. |
List<CalendarException> |
toList()
Converts the CalendarExceptionCollection object to a list of
CalendarException objects. |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@Deprecated public int getCount()
Returns the number of objects contained in this CalendarExceptionCollection
object.
Read only int
.
public Calendar getParentCalendar()
Returns parent calendar for this object.
Read only Calendar
.
public boolean add(CalendarException exception)
add
in interface Collection<CalendarException>
add
in interface List<CalendarException>
add
in class AbstractList<CalendarException>
exception
- CalendarException
instance to add.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 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 remove(int index)
remove
in interface List<CalendarException>
remove
in class AbstractList<CalendarException>
index
- public boolean remove(Object exception)
CalendarException
instance from this collection.remove
in interface Collection<CalendarException>
remove
in interface List<CalendarException>
remove
in class AbstractCollection<CalendarException>
exception
- CalendarException
instance to remove.public List<CalendarException> toList()
Converts the CalendarExceptionCollection object to a list of CalendarException
objects.
CalendarException
objects.public int size()
Returns the number of objects contained in this CalendarExceptionCollection
object.
Read only int
.
size
in interface Collection<CalendarException>
size
in interface List<CalendarException>
size
in class AbstractCollection<CalendarException>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.