public final class DoubleFieldValue extends NumericFieldValue
Modifier and Type | Class and Description |
---|---|
private static class |
DoubleFieldValue.Factory |
FieldValue.RecursiveIteratorHandler
Modifier and Type | Field and Description |
---|---|
static int |
classId |
private double |
value |
Constructor and Description |
---|
DoubleFieldValue() |
DoubleFieldValue(double value) |
DoubleFieldValue(Double value) |
DoubleFieldValue(String s) |
Modifier and Type | Method and Description |
---|---|
void |
assign(Object obj)
Assign this non-fieldvalue value to this field value.
|
void |
clear() |
DoubleFieldValue |
clone() |
int |
compareTo(FieldValue fieldValue) |
void |
deserialize(Field field,
FieldReader reader)
Read a field value from the specified reader
|
boolean |
equals(Object o) |
DataType |
getDataType() |
double |
getDouble() |
static PrimitiveDataType.Factory |
getFactory() |
Number |
getNumber() |
Object |
getWrappedValue()
Used to retrieve wrapped type for simple types, such that you can use get methods to retrieve ints and floats
directly instead of Int/Float field values.
|
int |
hashCode() |
void |
printXml(XmlStream xml) |
void |
serialize(Field field,
FieldWriter writer)
Write out field value to the specified writer
|
String |
toString() |
checkAssign, create, deserialize, getRecursiveValue, getRecursiveValue, iterateNested, onDeserialize, onSerialize, serialize, toXml
public DoubleFieldValue()
public DoubleFieldValue(double value)
public DoubleFieldValue(Double value)
public DoubleFieldValue(String s)
public static PrimitiveDataType.Factory getFactory()
public DoubleFieldValue clone()
clone
in class FieldValue
public void clear()
clear
in class FieldValue
public Number getNumber()
getNumber
in class NumericFieldValue
public void assign(Object obj)
FieldValue
Override to accept the specific types that should be legal.
assign
in class FieldValue
public double getDouble()
public Object getWrappedValue()
FieldValue
getWrappedValue
in class FieldValue
public DataType getDataType()
getDataType
in class FieldValue
public void printXml(XmlStream xml)
printXml
in class FieldValue
public String toString()
toString
in class com.yahoo.vespa.objects.Identifiable
public int hashCode()
hashCode
in class com.yahoo.vespa.objects.Identifiable
public boolean equals(Object o)
equals
in class com.yahoo.vespa.objects.Identifiable
public void serialize(Field field, FieldWriter writer)
FieldValue
serialize
in class FieldValue
public void deserialize(Field field, FieldReader reader)
FieldValue
deserialize
in class FieldValue
public int compareTo(FieldValue fieldValue)
compareTo
in interface Comparable<FieldValue>
compareTo
in class FieldValue
Copyright © 2017. All rights reserved.