Class Query

    • Constructor Detail

      • Query

        public Query()
    • Method Detail

      • getSelectors

        public List<Selector> getSelectors()

        List of selectors that define the query. An object must satisfy all of the selectors to match the query.

        Returns:
        List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      • setSelectors

        public void setSelectors​(Collection<Selector> selectors)

        List of selectors that define the query. An object must satisfy all of the selectors to match the query.

        Parameters:
        selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
      • withSelectors

        public Query withSelectors​(Selector... selectors)

        List of selectors that define the query. An object must satisfy all of the selectors to match the query.

        NOTE: This method appends the values to the existing list (if any). Use setSelectors(java.util.Collection) or withSelectors(java.util.Collection) if you want to override the existing values.

        Parameters:
        selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSelectors

        public Query withSelectors​(Collection<Selector> selectors)

        List of selectors that define the query. An object must satisfy all of the selectors to match the query.

        Parameters:
        selectors - List of selectors that define the query. An object must satisfy all of the selectors to match the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object