Class DefaultNshHistory

java.lang.Object
net.thevpc.nsh.history.AbstractNshHistory
net.thevpc.nsh.history.DefaultNshHistory
All Implemented Interfaces:
NshHistory

public class DefaultNshHistory extends AbstractNshHistory
  • Constructor Details

    • DefaultNshHistory

      public DefaultNshHistory()
  • Method Details

    • getHistoryFile

      public NPath getHistoryFile()
    • setHistoryFile

      public DefaultNshHistory setHistoryFile(NPath historyFile)
    • add

      public void add(String e)
    • removeDuplicates

      public void removeDuplicates()
    • getElements

      public List<String> getElements()
    • getElements

      public List<String> getElements(int maxElements)
    • size

      public int size()
    • clear

      public void clear()
    • remove

      public void remove(int index)
    • load

      public void load()
    • save

      public void save()
    • isEmpty

      public boolean isEmpty()
    • get

      public String get(int index)
    • getLast

      public String getLast()