|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataIntField
The DataIntField
defines identity and access API for Int-fields.
Method Summary | |
---|---|
boolean |
equals(int value1,
int value2)
Compares two specified field values for equality. |
int |
parseString(java.lang.String value)
Parses string representation of specified field value. |
int |
readInt(java.io.DataInput in)
Reads field value from specified data intput and returns it to the caller. |
double |
toDouble(int value)
Converts raw QD int-value to meaningful double value, or to Double.NaN if inapplicable. |
int |
toInt(double value)
Converts meaningful double value to raw QD int-value, or to 0 if inapplicable. |
java.lang.String |
toString(int value)
Returns string representation of specified field value. |
void |
writeInt(java.io.DataOutput out,
int value)
Writes specified field value into specified data output. |
Methods inherited from interface com.devexperts.qd.DataField |
---|
getIndex, getLocalName, getName, getRecord, getSerialType |
Method Detail |
---|
java.lang.String toString(int value)
int parseString(java.lang.String value)
java.lang.IllegalArgumentException
- if string cannot be parsed.double toDouble(int value)
Double.NaN
if inapplicable.
int toInt(double value)
0
if inapplicable.
boolean equals(int value1, int value2)
void writeInt(java.io.DataOutput out, int value) throws java.io.IOException
java.io.IOException
- as specified data output does.int readInt(java.io.DataInput in) throws java.io.IOException
java.io.IOException
- as specified data input does.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |