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