public class ShortField extends DCField
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
| Constructor and Description |
|---|
ShortField() |
ShortField(FieldKey key) |
ShortField(FieldKey key,
short val) |
ShortField(int id,
byte[] val)
Deprecated.
use ShortField(FieldKey) followed by setValue(byte[])
|
ShortField(int id,
short val)
Deprecated.
use ShortField(FieldKey, short)
|
ShortField(java.lang.String id,
byte[] val)
Deprecated.
use ShortField(FieldKey) followed by setValue(byte[])
|
ShortField(java.lang.String id,
short val)
Deprecated.
use ShortField(FieldKey, short)
|
| 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(byte[] val,
int offset,
int len) |
void |
setValue(short s)
Sets the value of this ShortField from the given short value
|
void |
setValue(java.lang.String s)
Sets the value of this ShortField 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, writeValueToStreampublic static final int LENGTH
public ShortField()
public ShortField(FieldKey key)
public ShortField(FieldKey key, short val)
public ShortField(int id,
short val)
public ShortField(java.lang.String id,
short val)
public ShortField(int id,
byte[] val)
public ShortField(java.lang.String id,
byte[] val)
public void setValue(short s)
throws NDKException
NDKExceptionpublic void setValue(byte[] val,
int offset,
int len)
public void setValue(java.lang.String s)
throws NDKException
NDKExceptionpublic int getType()
public short getShortValue()
throws java.lang.ClassCastException
getShortValue in class DCFieldjava.lang.ClassCastExceptionpublic byte getByteValue()
throws java.lang.ClassCastException
getByteValue in class DCFieldjava.lang.ClassCastExceptionpublic 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 float getFloatValue()
throws java.lang.ClassCastException
getFloatValue in class DCFieldjava.lang.ClassCastExceptionpublic int getIntValue()
throws java.lang.ClassCastException
getIntValue 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