Package jline.console.history
Class MemoryHistory.EntriesIterator
java.lang.Object
jline.console.history.MemoryHistory.EntriesIterator
- All Implemented Interfaces:
Iterator<History.Entry>
,ListIterator<History.Entry>
- Enclosing class:
MemoryHistory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(History.Entry entry) boolean
hasNext()
boolean
next()
int
previous()
int
void
remove()
void
set
(History.Entry entry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
source
-
-
Constructor Details
-
EntriesIterator
private EntriesIterator(int index)
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<History.Entry>
- Specified by:
next
in interfaceListIterator<History.Entry>
-
previous
- Specified by:
previous
in interfaceListIterator<History.Entry>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<History.Entry>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<History.Entry>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<History.Entry>
- Specified by:
hasNext
in interfaceListIterator<History.Entry>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<History.Entry>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<History.Entry>
- Specified by:
remove
in interfaceListIterator<History.Entry>
-
set
- Specified by:
set
in interfaceListIterator<History.Entry>
-
add
- Specified by:
add
in interfaceListIterator<History.Entry>
-