public class DoubleField extends DCField
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH |
Constructor and Description |
---|
DoubleField(FieldKey id,
double val) |
DoubleField(int id,
byte[] val) |
DoubleField(int id,
double val) |
DoubleField(java.lang.String id,
byte[] val) |
DoubleField(java.lang.String id,
double val) |
Modifier and Type | Method and Description |
---|---|
byte |
getByteValue() |
java.util.Date |
getDateValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
short |
getShortValue() |
java.lang.String |
getStringValue() |
int |
getType() |
void |
setValue(double d)
Sets the value of this DoubleField from the given double
|
void |
setValue(java.lang.String s)
Sets the value of this DoubleField from the given String
|
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getDCField, getDCField, getDCField, getID, getKey, getLength, getStaticAttrLength, init, init, init, isEmpty, isVarLength, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromStream, readValueFromStream, setID, setID, setKey, setType, setValue, toString, writeValueToStream
public static final int LENGTH
public DoubleField(int id, double val)
public DoubleField(java.lang.String id, double val)
public DoubleField(FieldKey id, double val)
public DoubleField(int id, byte[] val)
public DoubleField(java.lang.String id, byte[] val)
public void setValue(double d) throws NDKException
NDKException
public void setValue(java.lang.String s) throws NDKException
NDKException
public int getType()
public java.util.Date getDateValue() throws java.lang.ClassCastException
getDateValue
in class DCField
java.lang.ClassCastException
public double getDoubleValue() throws java.lang.ClassCastException
getDoubleValue
in class DCField
java.lang.ClassCastException
public byte getByteValue() throws java.lang.ClassCastException
getByteValue
in class DCField
java.lang.ClassCastException
public short getShortValue() throws java.lang.ClassCastException
getShortValue
in class DCField
java.lang.ClassCastException
public int getIntValue() throws java.lang.ClassCastException
getIntValue
in class DCField
java.lang.ClassCastException
public float getFloatValue() throws java.lang.ClassCastException
getFloatValue
in class DCField
java.lang.ClassCastException
public long getLongValue() throws java.lang.ClassCastException
getLongValue
in class DCField
java.lang.ClassCastException
public java.lang.String getStringValue() throws java.lang.ClassCastException
getStringValue
in class DCField
java.lang.ClassCastException