|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjline.console.history.MemoryHistory
public class MemoryHistory
Non-persistent History.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jline.console.history.History |
|---|
History.Entry |
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_SIZE
|
| Constructor Summary | |
|---|---|
MemoryHistory()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.CharSequence item)
|
void |
clear()
|
java.lang.CharSequence |
current()
Return the content of the current buffer. |
java.util.ListIterator<History.Entry> |
entries()
|
java.util.ListIterator<History.Entry> |
entries(int index)
|
java.lang.CharSequence |
get(int index)
|
int |
getMaxSize()
|
int |
index()
|
boolean |
isAutoTrim()
|
boolean |
isEmpty()
|
boolean |
isIgnoreDuplicates()
|
java.util.Iterator<History.Entry> |
iterator()
|
boolean |
moveTo(int index)
Move to the specified index in the history |
void |
moveToEnd()
Move to the end of the history buffer. |
boolean |
moveToFirst()
Moves the history index to the first entry. |
boolean |
moveToLast()
This moves the history to the last entry. |
boolean |
next()
Move the pointer to the next element in the buffer. |
boolean |
previous()
Move the pointer to the previous element in the buffer. |
void |
replace(java.lang.CharSequence item)
|
void |
setAutoTrim(boolean flag)
|
void |
setIgnoreDuplicates(boolean flag)
|
void |
setMaxSize(int maxSize)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_SIZE
| Constructor Detail |
|---|
public MemoryHistory()
| Method Detail |
|---|
public void setMaxSize(int maxSize)
public int getMaxSize()
public boolean isIgnoreDuplicates()
public void setIgnoreDuplicates(boolean flag)
public boolean isAutoTrim()
public void setAutoTrim(boolean flag)
public int size()
size in interface Historypublic boolean isEmpty()
isEmpty in interface Historypublic int index()
index in interface Historypublic void clear()
clear in interface Historypublic java.lang.CharSequence get(int index)
get in interface Historypublic void add(java.lang.CharSequence item)
add in interface Historypublic void replace(java.lang.CharSequence item)
replace in interface Historypublic java.util.ListIterator<History.Entry> entries(int index)
entries in interface Historypublic java.util.ListIterator<History.Entry> entries()
entries in interface Historypublic java.util.Iterator<History.Entry> iterator()
iterator in interface java.lang.Iterable<History.Entry>iterator in interface Historypublic boolean moveToLast()
moveToLast in interface Historypublic boolean moveTo(int index)
moveTo in interface Historyindex -
public boolean moveToFirst()
moveToFirst in interface Historypublic void moveToEnd()
moveToEnd in interface Historypublic java.lang.CharSequence current()
current in interface Historypublic boolean previous()
previous in interface Historypublic boolean next()
next in interface History
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||