public class DefaultJShellHistory extends AbstractJShellHistory
| Constructor and Description |
|---|
DefaultJShellHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String e) |
void |
clear() |
String |
get(int index) |
List<String> |
getElements() |
List<String> |
getElements(int maxElements) |
net.thevpc.nuts.NutsPath |
getHistoryFile() |
String |
getLast() |
boolean |
isEmpty() |
void |
load() |
void |
remove(int index) |
void |
removeDuplicates() |
void |
save() |
DefaultJShellHistory |
setHistoryFile(net.thevpc.nuts.NutsPath historyFile) |
int |
size() |
public net.thevpc.nuts.NutsPath getHistoryFile()
public DefaultJShellHistory setHistoryFile(net.thevpc.nuts.NutsPath historyFile)
public void add(String e)
public void removeDuplicates()
public int size()
public void clear()
public void remove(int index)
public void load()
throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic boolean isEmpty()
public String get(int index)
public String getLast()
Copyright © 2022 vpc open source initiative. All rights reserved.