T
- Items typepublic final class JoinedListIterator<T> extends Object implements ListIterator<T>
ListIterator
joined together.
There is no thread-safety guarantee.
Constructor and Description |
---|
JoinedListIterator(List<ListIterator<T>> items)
Ctor.
|
JoinedListIterator(ListIterator<T>... items)
Ctor.
|
JoinedListIterator(ListIterator<T> items,
T item)
Ctor.
|
JoinedListIterator(T item,
ListIterator<T> items)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T elt) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T elt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
@SafeVarargs public JoinedListIterator(ListIterator<T>... items)
items
- Items to concatenatepublic JoinedListIterator(T item, ListIterator<T> items)
item
- First itemitems
- ListIteratorpublic JoinedListIterator(ListIterator<T> items, T item)
items
- ListIteratorsitem
- End itempublic JoinedListIterator(List<ListIterator<T>> items)
items
- Items to concatenatepublic boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<T>
public T previous()
previous
in interface ListIterator<T>
public int nextIndex()
nextIndex
in interface ListIterator<T>
public int previousIndex()
previousIndex
in interface ListIterator<T>
public void remove()
public void set(T elt)
set
in interface ListIterator<T>
public void add(T elt)
add
in interface ListIterator<T>
Copyright © 2017–2021 Cactoos. All rights reserved.