Interface ISearchHistory

    • Method Detail

      • savePattern

        void savePattern​(String pattern)
        Saves pattern in the history.
        Parameters:
        pattern - pattern to save.
      • getActivePattern

        String getActivePattern()
        Returns:
        active pattern or empty string if there is no one.
      • getRecentPatterns

        List<String> getRecentPatterns​(int maxPatterns)
        Return recent history patterns. Use ALL_PATTERNS to obtain all patterns stored in the history.
        Parameters:
        maxPatterns - maximum number of patterns to return.
        Returns:
        recent patterns or empty iterable if there are no patterns.