Class Expression

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class Expression
    extends Object
    implements Serializable, Cloneable

    A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.

    See Also:
    Serialized Form
    • Constructor Detail

      • Expression

        public Expression()
    • Method Detail

      • setExpressionName

        public void setExpressionName​(String expressionName)
        Parameters:
        expressionName -
      • getExpressionName

        public String getExpressionName()
        Returns:
      • withExpressionName

        public Expression withExpressionName​(String expressionName)
        Parameters:
        expressionName -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setExpressionValue

        public void setExpressionValue​(String expressionValue)
        Parameters:
        expressionValue -
      • getExpressionValue

        public String getExpressionValue()
        Returns:
      • withExpressionValue

        public Expression withExpressionValue​(String expressionValue)
        Parameters:
        expressionValue -
        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