public class NegateDoubleFunction extends SingleDoubleFunction
NegateDoubleFunction negates the double value of the source it contains.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
source| Constructor and Description |
|---|
NegateDoubleFunction(ValueSource source) |
| Modifier and Type | Method and Description |
|---|---|
String |
description() |
boolean |
equals(Object o) |
protected double |
func(int doc,
FunctionValues vals) |
protected String |
name() |
getValues, hashCodecreateWeight, getSortField, newContext, toStringpublic static final String NAME
public NegateDoubleFunction(ValueSource source)
protected String name()
public String description()
description in class SingleDoubleFunctionprotected double func(int doc,
FunctionValues vals)
public boolean equals(Object o)
equals in class SingleDoubleFunctionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.