public abstract class ReadOnlyCollectionBase<T> extends AbstractList<T>
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T item)
This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException
|
void |
clear() |
boolean |
contains(Object o) |
T |
get(int index)
Returns the element at the specified index.
|
int |
indexOf(Object o) |
boolean |
isReadOnly()
Determines, if collection read-only.
|
Iterator<T> |
iterator()
Returns an enumerator for this collection.
|
T |
remove(int index) |
boolean |
remove(Object o) |
T |
set(int index,
T value)
Returns the element at the specified index.
|
int |
size()
Gets the number of objects contained in the object.
|
void |
sort(Comparator<? super T> c) |
List<T> |
toList()
Converts the collection object to a list of
VbaModule 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(T item)
This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException
add
in interface Collection<T>
add
in interface List<T>
add
in class AbstractList<T>
item
- The item to add.public final void clear()
clear
in interface Collection<T>
clear
in interface List<T>
clear
in class AbstractList<T>
public final boolean contains(Object o)
contains
in interface Collection<T>
contains
in interface List<T>
contains
in class AbstractCollection<T>
o
- public final T get(int index)
Returns the element at the specified index.
public final int indexOf(Object o)
public final void add(int index, T element)
public final boolean isReadOnly()
public final boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface List<T>
remove
in class AbstractCollection<T>
o
- public final T remove(int index)
public final int size()
Gets the number of objects contained in the object.
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
public final List<T> toList()
Converts the collection object to a list of VbaModule
objects.
public void sort(Comparator<? super T> c)
c
-