public class NutsCommandHistoryImpl extends Object implements NutsCommandHistory
| Constructor and Description |
|---|
NutsCommandHistoryImpl(NutsWorkspace ws,
Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Instant time,
String line) |
NutsCommandHistoryEntry |
getEntry(int index) |
ListIterator<NutsCommandHistoryEntry> |
iterator(int index) |
void |
load() |
void |
load(InputStream in) |
void |
purge() |
void |
save() |
void |
save(OutputStream outs) |
int |
size() |
public NutsCommandHistoryImpl(NutsWorkspace ws, Path path)
public int size()
size in interface NutsCommandHistorypublic void load()
load in interface NutsCommandHistorypublic void load(InputStream in)
load in interface NutsCommandHistorypublic void save(OutputStream outs)
save in interface NutsCommandHistorypublic void save()
save in interface NutsCommandHistorypublic void purge()
purge in interface NutsCommandHistorypublic NutsCommandHistoryEntry getEntry(int index)
getEntry in interface NutsCommandHistorypublic ListIterator<NutsCommandHistoryEntry> iterator(int index)
iterator in interface NutsCommandHistorypublic void add(Instant time, String line)
add in interface NutsCommandHistoryCopyright © 2021 vpc open source initiative. All rights reserved.