private static class CompositeItem.ListIteratorWrapper extends Object implements ListIterator<Item>
Modifier and Type | Field and Description |
---|---|
private Item |
current |
private CompositeItem |
owner |
private ListIterator<Item> |
wrapped |
Constructor and Description |
---|
ListIteratorWrapper(CompositeItem owner) |
Modifier and Type | Method and Description |
---|---|
void |
add(Item o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
Item |
next() |
int |
nextIndex() |
Item |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(Item o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private CompositeItem owner
private ListIterator<Item> wrapped
private Item current
public ListIteratorWrapper(CompositeItem owner)
public boolean hasNext()
public Item next()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<Item>
public Item previous()
previous
in interface ListIterator<Item>
public int nextIndex()
nextIndex
in interface ListIterator<Item>
public int previousIndex()
previousIndex
in interface ListIterator<Item>
public void remove()
public void set(Item o)
set
in interface ListIterator<Item>
public void add(Item o)
add
in interface ListIterator<Item>
Copyright © 2018. All rights reserved.