Class Arguments
- java.lang.Object
-
- com.yahoo.searchlib.rankingexpression.rule.Arguments
-
- All Implemented Interfaces:
java.io.Serializable
public final class Arguments extends java.lang.Object implements java.io.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(java.util.List<? extends ExpressionNode> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Value
evaluate(int i, Context context)
Evaluate the i'th argumentValue[]
evaluate(Context context)
Evaluate all arguments in thisjava.util.List<ExpressionNode>
expressions()
Returns an unmodifiable list of the expressions in this, never nullint
hashCode()
boolean
isEmpty()
int
size()
Returns the number of arguments in thisjava.lang.String
toString()
-
-
-
Constructor Detail
-
Arguments
public Arguments()
-
Arguments
public Arguments(ExpressionNode singleArgument)
-
Arguments
public Arguments(java.util.List<? extends ExpressionNode> expressions)
-
-
Method Detail
-
expressions
public java.util.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()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-