java.lang.Object | |
↳ | jline.console.history.MemoryHistory |
![]() |
Non-persistent History
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_MAX_SIZE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the content of the current buffer.
| |||||||||||
Move to the specified index in the history
| |||||||||||
Move to the end of the history buffer.
| |||||||||||
Moves the history index to the first entry.
| |||||||||||
This moves the history to the last entry.
| |||||||||||
Move the pointer to the next element in the buffer.
| |||||||||||
Move the pointer to the previous element in the buffer.
| |||||||||||
Remove the history element at the given index.
| |||||||||||
Remove the first element from history.
| |||||||||||
Remove the last element from history
| |||||||||||
Set the history item at the given index to the given CharSequence.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Move to the specified index in the history
Move to the end of the history buffer. This will be a blank entry, after all of the other entries.
Moves the history index to the first entry.
This moves the history to the last entry. This entry is one position before the moveToEnd() position.
Move the pointer to the next element in the buffer.
Move the pointer to the previous element in the buffer.
Remove the history element at the given index.
i | the index of the element to remove |
---|
Remove the first element from history.
Set the history item at the given index to the given CharSequence.
index | the index of the history offset |
---|---|
item | the new item |