public class LongField extends DCField
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH |
Constructor and Description |
---|
LongField() |
LongField(FieldKey key) |
LongField(FieldKey key,
long val) |
LongField(int id,
byte[] val)
Deprecated.
use LongField(FieldKey) followed by setValue(byte[])
|
LongField(int id,
long val)
Deprecated.
use LongField(FieldKey,long)
|
LongField(java.lang.String id,
byte[] val)
Deprecated.
use LongField(FieldKey) followed by setValue(byte[])
|
LongField(java.lang.String id,
long val)
Deprecated.
use LongField(FieldKey,long)
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDateValue() |
double |
getDoubleValue() |
long |
getLongValue() |
java.lang.String |
getStringValue() |
int |
getType() |
void |
setValue(byte[] val,
int offset,
int len) |
void |
setValue(long l)
Sets the value of this LongField from the given long value
|
void |
setValue(java.lang.String s)
Sets the value of this LongField from the given String
|
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getByteValue, getDCField, getDCField, getDCField, getFloatValue, getID, getIntValue, getKey, getLength, getShortValue, 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 LongField()
public LongField(FieldKey key)
public LongField(FieldKey key, long val)
public LongField(int id, long val)
public LongField(java.lang.String id, long val)
public LongField(int id, byte[] val)
public LongField(java.lang.String id, byte[] val)
public void setValue(byte[] val, int offset, int len)
public void setValue(long l) 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 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