public class IterableList<T>
extends java.util.AbstractSequentialList<T>
List view of an Iterable, reflecting changes to the underlying Iterable. The list does not
implement RandomAccess, and is best accessed in sequence. The list supports removal operations, by using
Iterator.remove() if implemented in the Iterable's Iterator. Add and set operations are
supported only if listIterator(int) is overridden with a ListIterator that supports add and set.
The default ListIterator supports forward traversal only.| Constructor and Description |
|---|
IterableList(java.lang.Iterable<T> iterable) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(java.util.function.Consumer<? super T> action) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator(int index) |
int |
size() |
java.util.Spliterator<T> |
spliterator() |
add, clear, equals, hashCode, indexOf, listIterator, removeRange, subListaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic IterableList(java.lang.Iterable<T> iterable)
public java.util.Iterator<T> iterator()
public int size()
public boolean isEmpty()
public java.util.Spliterator<T> spliterator()
public void forEach(java.util.function.Consumer<? super T> action)
public int lastIndexOf(java.lang.Object o)