Class LastSearch



  • public class LastSearch
    extends java.lang.Object
    This class encapsulates information about the last Help Center search.
    • Constructor Summary

      Constructors 
      Constructor and Description
      LastSearch(java.lang.String query, int resultCount)
      Creates an instance of LastSearch from the given query and result count
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getQuery()
      Gets the query terms of the last search
      int getResultsCount()
      Gets the number of results that the last search had
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LastSearch

        public LastSearch(java.lang.String query,
                          int resultCount)
        Creates an instance of LastSearch from the given query and result count
        Parameters:
        query - The last used string to query the Help Center.
        resultCount - The result count of the last query.
    • Method Detail

      • getQuery

        public java.lang.String getQuery()
        Gets the query terms of the last search
        Returns:
        the query terms of the last search
      • getResultsCount

        public int getResultsCount()
        Gets the number of results that the last search had
        Returns:
        the number of results that the last search had