Class HistoryWrapper

    • Constructor Detail

      • HistoryWrapper

        public HistoryWrapper​(org.jline.reader.History history)
    • Method Detail

      • clear

        public void clear()
        Description copied from interface: History
        Clear the history.
        Specified by:
        clear in interface History
      • first

        public int first()
        Description copied from interface: History
        First available index.
        Specified by:
        first in interface History
        Returns:
        first index in the history
      • last

        public int last()
        Description copied from interface: History
        Last available index.
        Specified by:
        last in interface History
        Returns:
        last index in the history
      • get

        public CharSequence get​(int index)
        Description copied from interface: History
        Command at the given index. Indices can range from first() to last().
        Specified by:
        get in interface History
        Parameters:
        index - the index in the history.
        Returns:
        the command in the history at the given index.