V
- The member type of the listpublic class MyReadOnlyList<V> extends MyReadOnlyCollection<V> implements java.util.List<V>
Constructor and Description |
---|
MyReadOnlyList(java.util.List<V> list)
Creates the MyReadOnlyList
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
V element) |
boolean |
addAll(int index,
java.util.Collection<? extends V> c) |
V |
get(int index) |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<V> |
listIterator() |
java.util.ListIterator<V> |
listIterator(int index) |
V |
remove(int index) |
V |
set(int index,
V element) |
java.util.List<V> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
public MyReadOnlyList(java.util.List<V> list)
list
- -public final boolean addAll(int index, java.util.Collection<? extends V> c)
addAll
in interface java.util.List<V>
public final int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<V>
public final int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<V>
public final java.util.ListIterator<V> listIterator()
listIterator
in interface java.util.List<V>
public final java.util.ListIterator<V> listIterator(int index)
listIterator
in interface java.util.List<V>