Class MemoryHistory.EntriesIterator
java.lang.Object
jline.console.history.MemoryHistory.EntriesIterator
- All Implemented Interfaces:
Iterator<History.Entry>, ListIterator<History.Entry>
- Enclosing class:
MemoryHistory
- Since:
- 2.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(History.Entry entry) booleanhasNext()booleannext()intprevious()intvoidremove()voidset(History.Entry entry) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
source
-
-
Constructor Details
-
EntriesIterator
private EntriesIterator(int index)
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<History.Entry>- Specified by:
nextin interfaceListIterator<History.Entry>
-
previous
- Specified by:
previousin interfaceListIterator<History.Entry>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<History.Entry>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<History.Entry>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<History.Entry>- Specified by:
hasNextin interfaceListIterator<History.Entry>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<History.Entry>
-
remove
public void remove()- Specified by:
removein interfaceIterator<History.Entry>- Specified by:
removein interfaceListIterator<History.Entry>
-
set
- Specified by:
setin interfaceListIterator<History.Entry>
-
add
- Specified by:
addin interfaceListIterator<History.Entry>
-