jline.console.history
Interface History
- All Superinterfaces:
- java.lang.Iterable<History.Entry>
- All Known Subinterfaces:
- PersistentHistory
- All Known Implementing Classes:
- FileHistory, MemoryHistory
public interface History
- extends java.lang.Iterable<History.Entry>
Console history.
- Since:
- 2.3
- Author:
- Marc Prud'hommeaux, Jason Dillon
size
int size()
isEmpty
boolean isEmpty()
index
int index()
clear
void clear()
get
java.lang.CharSequence get(int index)
add
void add(java.lang.CharSequence line)
replace
void replace(java.lang.CharSequence item)
entries
java.util.ListIterator<History.Entry> entries(int index)
entries
java.util.ListIterator<History.Entry> entries()
iterator
java.util.Iterator<History.Entry> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<History.Entry>
current
java.lang.CharSequence current()
previous
boolean previous()
next
boolean next()
moveToFirst
boolean moveToFirst()
moveToLast
boolean moveToLast()
moveTo
boolean moveTo(int index)
moveToEnd
void moveToEnd()