java.lang.Object
com.yahoo.searchlib.rankingexpression.rule.Arguments
All Implemented Interfaces:
Serializable

public final class Arguments extends Object implements Serializable
A set of argument expressions to a function or feature. This is a value object.
Author:
bratseth
See Also:
  • Field Details

    • EMPTY

      public static final Arguments EMPTY
  • Constructor Details

    • Arguments

      public Arguments()
    • Arguments

      public Arguments(ExpressionNode singleArgument)
    • Arguments

      public Arguments(List<? extends ExpressionNode> expressions)
  • Method Details

    • expressions

      public List<ExpressionNode> expressions()
      Returns an unmodifiable list of the expressions in this, never null
    • size

      public int size()
      Returns the number of arguments in this
    • evaluate

      public Value[] evaluate(Context context)
      Evaluate all arguments in this
    • evaluate

      public Value evaluate(int i, Context context)
      Evaluate the i'th argument
    • isEmpty

      public boolean isEmpty()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object