E - Тип элемента спискаpublic class BasicEventListIterator<E> extends Object implements ListIterator<E>, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected BasicEventList<E> |
elist |
protected int |
position |
| Constructor and Description |
|---|
BasicEventListIterator(BasicEventList<E> elist) |
BasicEventListIterator(BasicEventList<E> elist,
int initialIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E e) |
protected void |
checkPositionBounds() |
void |
close() |
protected int |
getBeginPosition() |
protected int |
getEndPosition() |
protected int |
getFirstIndex() |
boolean |
hasNext() |
boolean |
hasPrevious() |
protected boolean |
indexInList(int idx) |
protected boolean |
isLimitNextPosition() |
protected boolean |
isLimitPreviousPosition() |
E |
next() |
int |
nextIndex() |
protected boolean |
positionInBounds(int idx) |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected BasicEventList<E> elist
protected int position
protected boolean closed
public BasicEventListIterator(BasicEventList<E> elist)
public BasicEventListIterator(BasicEventList<E> elist, int initialIndex)
public boolean hasNext()
public E next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>protected void checkPositionBounds()
protected boolean positionInBounds(int idx)
protected boolean indexInList(int idx)
protected int getEndPosition()
protected boolean isLimitNextPosition()
public int nextIndex()
nextIndex in interface ListIterator<E>protected int getBeginPosition()
protected boolean isLimitPreviousPosition()
public int previousIndex()
previousIndex in interface ListIterator<E>public void remove()
public void set(E e)
set in interface ListIterator<E>protected int getFirstIndex()
public void add(E e)
add in interface ListIterator<E>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017. All rights reserved.