Interface CommandHistory


  • public interface CommandHistory
    Represents the history of commands and operations.
    Author:
    Alexey Loubyansky
    • Method Detail

      • asList

        List<String> asList()
        Returns the history as a list of strings.
        Returns:
        history as a list of strings.
      • isUseHistory

        boolean isUseHistory()
        Returns a boolean indicating whether the history is enabled or not.
        Returns:
        true in case the history is enabled, false otherwise.
      • setUseHistory

        void setUseHistory​(boolean useHistory)
        Enables or disables history.
        Parameters:
        useHistory - true enables history, false disables it.
      • clear

        void clear()
        Clears history.
      • getMaxSize

        int getMaxSize()
        The maximum length of the history log.
        Returns:
        maximum length of the history log