Class SavedQuery


  • public class SavedQuery
    extends java.lang.Object
    Container for a saved query.
    Author:
    Thomas Riley
    • Constructor Summary

      Constructors 
      Constructor Description
      SavedQuery​(java.lang.String queryName, java.util.Date dateCreated, PathQuery query)
      Construct a new instance of SavedQuery.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test receiver for equality with passed object.
      java.util.Date getDateCreated()
      Get the date on which the query was created.
      java.lang.String getName()
      Get the name of the saved query.
      PathQuery getPathQuery()
      Get the saved PathQuery.
      int hashCode()
      Hash code.
      • Methods inherited from class java.lang.Object

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

      • SavedQuery

        public SavedQuery​(java.lang.String queryName,
                          java.util.Date dateCreated,
                          PathQuery query)
        Construct a new instance of SavedQuery.
        Parameters:
        queryName - the name of the saved query
        dateCreated - the date created
        query - the actual PathQuery
    • Method Detail

      • getDateCreated

        public java.util.Date getDateCreated()
        Get the date on which the query was created.
        Returns:
        date on which query was created
      • getName

        public java.lang.String getName()
        Get the name of the saved query.
        Returns:
        name of saved query
      • getPathQuery

        public PathQuery getPathQuery()
        Get the saved PathQuery.
        Returns:
        the PathQuery
      • equals

        public boolean equals​(java.lang.Object obj)
        Test receiver for equality with passed object.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Hash code.
        Overrides:
        hashCode in class java.lang.Object