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, writeValueToStreampublic 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
NDKExceptionpublic void setValue(java.lang.String s)
throws NDKException
NDKExceptionpublic int getType()
public java.util.Date getDateValue()
throws java.lang.ClassCastException
getDateValue in class DCFieldjava.lang.ClassCastExceptionpublic double getDoubleValue()
throws java.lang.ClassCastException
getDoubleValue in class DCFieldjava.lang.ClassCastExceptionpublic long getLongValue()
throws java.lang.ClassCastException
getLongValue in class DCFieldjava.lang.ClassCastExceptionpublic java.lang.String getStringValue()
throws java.lang.ClassCastException
getStringValue in class DCFieldjava.lang.ClassCastException