java.lang.Iterable<History.Entry>PersistentHistoryFileHistory, MemoryHistorypublic interface History extends java.lang.Iterable<History.Entry>
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
History.Entry |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.CharSequence line) |
|
void |
clear() |
|
java.lang.CharSequence |
current() |
|
java.util.ListIterator<History.Entry> |
entries() |
|
java.util.ListIterator<History.Entry> |
entries(int index) |
|
java.lang.CharSequence |
get(int index) |
|
int |
index() |
|
boolean |
isEmpty() |
|
java.util.Iterator<History.Entry> |
iterator() |
|
boolean |
moveTo(int index) |
|
void |
moveToEnd() |
|
boolean |
moveToFirst() |
|
boolean |
moveToLast() |
|
boolean |
next() |
|
boolean |
previous() |
|
java.lang.CharSequence |
remove(int i) |
Remove the history element at the given index.
|
java.lang.CharSequence |
removeFirst() |
Remove the first element from history.
|
java.lang.CharSequence |
removeLast() |
Remove the last element from history
|
void |
replace(java.lang.CharSequence item) |
|
void |
set(int index,
java.lang.CharSequence item) |
Set the history item at the given index to the given CharSequence.
|
int |
size() |
int size()
boolean isEmpty()
int index()
void clear()
java.lang.CharSequence get(int index)
void add(java.lang.CharSequence line)
void set(int index,
java.lang.CharSequence item)
index - the index of the history offsetitem - the new itemjava.lang.CharSequence remove(int i)
i - the index of the element to removejava.lang.CharSequence removeFirst()
java.lang.CharSequence removeLast()
void replace(java.lang.CharSequence item)
java.util.ListIterator<History.Entry> entries(int index)
java.util.ListIterator<History.Entry> entries()
java.util.Iterator<History.Entry> iterator()
iterator in interface java.lang.Iterable<History.Entry>java.lang.CharSequence current()
boolean previous()
boolean next()
boolean moveToFirst()
boolean moveToLast()
boolean moveTo(int index)
void moveToEnd()