Class LongValue
java.lang.Object
com.yahoo.searchlib.rankingexpression.evaluation.Value
com.yahoo.searchlib.rankingexpression.evaluation.DoubleCompatibleValue
com.yahoo.searchlib.rankingexpression.evaluation.LongValue
A representation for integer numbers
- Author:
- balder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns this value as a boolean.doubleasDouble()Returns this value as a double, or throws UnsupportedOperationException if it cannot be represented as a doubleReturns this is mutable, or a mutable copy otherwisebooleanPerform the given binary function on this value and the given valueinthashCode()Returns a hash which only depends on the content of this value.negate()toString()Methods inherited from class com.yahoo.searchlib.rankingexpression.evaluation.DoubleCompatibleValue
and, approxEqual, asTensor, equal, hasDouble, larger, largerOrEqual, not, notEqual, or, power, smaller, smallerOrEqual, typeMethods inherited from class com.yahoo.searchlib.rankingexpression.evaluation.Value
asDoubleValue, doubleAsTensor, freeze, isFrozen, isNaN, of, of, parse
-
Constructor Details
-
LongValue
public LongValue(long value)
-
-
Method Details
-
asDouble
public double asDouble()Description copied from class:ValueReturns this value as a double, or throws UnsupportedOperationException if it cannot be represented as a double -
asBoolean
public boolean asBoolean()Description copied from class:ValueReturns this value as a boolean. -
asMutable
Description copied from class:ValueReturns this is mutable, or a mutable copy otherwise -
toString
-
equals
-
hashCode
public int hashCode()Description copied from class:ValueReturns a hash which only depends on the content of this value. -
negate
- Overrides:
negatein classDoubleCompatibleValue
-
add
- Overrides:
addin classDoubleCompatibleValue
-
subtract
- Overrides:
subtractin classDoubleCompatibleValue
-
multiply
- Overrides:
multiplyin classDoubleCompatibleValue
-
divide
- Overrides:
dividein classDoubleCompatibleValue
-
modulo
- Overrides:
moduloin classDoubleCompatibleValue
-
function
Description copied from class:ValuePerform the given binary function on this value and the given value- Overrides:
functionin classDoubleCompatibleValue
-