public class InMemoryHistory extends Object implements History
| Constructor and Description |
|---|
InMemoryHistory() |
InMemoryHistory(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
String |
find(String search) |
String |
get(int index) |
List<String> |
getAll() |
String |
getCurrent() |
String |
getNextFetch() |
String |
getPreviousFetch() |
SearchDirection |
getSearchDirection() |
void |
push(String entry) |
String |
search(String search) |
void |
setCurrent(String line) |
void |
setSearchDirection(SearchDirection direction) |
int |
size() |
public InMemoryHistory()
public InMemoryHistory(int maxSize)
public void setSearchDirection(SearchDirection direction)
setSearchDirection in interface Historypublic SearchDirection getSearchDirection()
getSearchDirection in interface Historypublic String getPreviousFetch()
getPreviousFetch in interface Historypublic String getNextFetch()
getNextFetch in interface Historypublic void setCurrent(String line)
setCurrent in interface Historypublic String getCurrent()
getCurrent in interface HistoryCopyright © 2014 JBoss by Red Hat. All rights reserved.