Class Arguments
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Arguments()
Arguments(ExpressionNode singleArgument)
Arguments(List<? extends ExpressionNode> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Value
evaluate(int i, Context context)
Evaluate the i'th argumentValue[]
evaluate(Context context)
Evaluate all arguments in thisList<ExpressionNode>
expressions()
Returns an unmodifiable list of the expressions in this, never nullint
hashCode()
boolean
isEmpty()
int
size()
Returns the number of arguments in thisString
toString()
-
-
-
Field Detail
-
EMPTY
public static final Arguments EMPTY
-
-
Constructor Detail
-
Arguments
public Arguments()
-
Arguments
public Arguments(ExpressionNode singleArgument)
-
Arguments
public Arguments(List<? extends ExpressionNode> expressions)
-
-
Method Detail
-
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
-
isEmpty
public boolean isEmpty()
-
-