public class NJLineCmdLineHistory extends Object implements NCmdLineHistory
| Constructor and Description |
|---|
NJLineCmdLineHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Instant time,
String line) |
NCmdLineHistoryEntry |
getEntry(int index) |
org.jline.reader.LineReader |
getReader() |
static int |
getScore(NScorableContext context) |
protected void |
internalAdd(Instant time,
String line) |
ListIterator<NCmdLineHistoryEntry> |
iterator(int index) |
void |
load() |
void |
load(InputStream in) |
protected boolean |
matchPatterns(String patterns,
String line) |
NPath |
path() |
NCmdLineHistory |
path(File path) |
NCmdLineHistory |
path(NPath path) |
NCmdLineHistory |
path(Path path) |
void |
purge() |
void |
save() |
void |
save(OutputStream out) |
void |
setReader(org.jline.reader.LineReader reader) |
int |
size() |
protected void |
trimHistory(Path path,
int max) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic org.jline.reader.LineReader getReader()
public void setReader(org.jline.reader.LineReader reader)
public NCmdLineHistory path(Path path)
path in interface NCmdLineHistorypublic NCmdLineHistory path(File path)
path in interface NCmdLineHistorypublic NCmdLineHistory path(NPath path)
path in interface NCmdLineHistorypublic NPath path()
path in interface NCmdLineHistorypublic static int getScore(NScorableContext context)
public void load(InputStream in)
load in interface NCmdLineHistorypublic void load()
load in interface NCmdLineHistorypublic void save(OutputStream out)
save in interface NCmdLineHistorypublic void save()
save in interface NCmdLineHistorypublic int size()
size in interface NCmdLineHistorypublic void purge()
purge in interface NCmdLineHistoryprotected void trimHistory(Path path, int max) throws IOException
IOExceptionpublic void add(Instant time, String line)
add in interface NCmdLineHistorypublic NCmdLineHistoryEntry getEntry(int index)
getEntry in interface NCmdLineHistorypublic ListIterator<NCmdLineHistoryEntry> iterator(int index)
iterator in interface NCmdLineHistoryCopyright © 2026 vpc open source initiative. All rights reserved.