public class IterableList<T>
extends java.util.AbstractSequentialList<T>
List view of an Iterable.| Constructor and Description |
|---|
IterableList(java.lang.Iterable<T> iterable) |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
from(java.lang.Iterable<T> iterable)
Create a
List view of the given Iterable, which is updated in real time as the
Iterable changes. |
java.util.Iterator<T> |
iterator() |
java.util.ListIterator<T> |
listIterator(int index) |
int |
size() |
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic IterableList(java.lang.Iterable<T> iterable)
public static <T> java.util.List<T> from(java.lang.Iterable<T> iterable)
List view of the given Iterable, which is updated in real time as the
Iterable changes. If a List is given it is returned unchanged. The list does not implement
RandomAccess unless the given Iterable does, and is best accessed in sequence. The list does
not support modification except removal, by Iterator.remove() if implemented in the Iterable.public java.util.Iterator<T> iterator()
public java.util.ListIterator<T> listIterator(int index)