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