I
- the "input" type; the type of the wrapped listO
- the "output" type; the type of elements in this listpublic static class TransformingList.ReadOnly<I,O> extends TransformingList<I,O>
UnsupportedOperationException
.Modifier and Type | Class and Description |
---|---|
static class |
TransformingList.ReadOnly.RandomAccess<I,O>
A read-only transforming list that also has the
RandomAccess marker
interface. |
TransformingList.Bidi<I,O>, TransformingList.ReadOnly<I,O>
Constructor and Description |
---|
ReadOnly(List<I> list,
Function<? super I,? extends O> function)
Constructs a new read-only transforming list.
|
Modifier and Type | Method and Description |
---|---|
Iterator<O> |
iterator() |
ListIterator<O> |
listIterator() |
ListIterator<O> |
listIterator(int index) |
O |
remove(int index) |
List<O> |
subList(int fromIndex,
int toIndex) |
add, addAll, equals, get, hashCode, indexOf, internal, lastIndexOf, set
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
apply, function
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public O remove(int index)
public ListIterator<O> listIterator()
listIterator
in interface List<O>
listIterator
in class TransformingList<I,O>
public ListIterator<O> listIterator(int index)
listIterator
in interface List<O>
listIterator
in class TransformingList<I,O>