Class EmptySearchHistory

    • Constructor Detail

      • EmptySearchHistory

        public EmptySearchHistory()
    • Method Detail

      • savePattern

        public void savePattern​(String pattern)
        Saves pattern in the history.
        Specified by:
        savePattern in interface ISearchHistory
        pattern - pattern to save.
      • getRecentPatterns

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