|
|||||||||
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(com.devexperts.io.BufferedInput in)
Reads field value from specified buffered input and returns it to the caller. |
int |
readInt(java.io.DataInput in)
Deprecated. Use readInt(BufferedInput) which is faster. |
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(com.devexperts.io.BufferedOutput out,
int value)
Writes specified field value into specified buffered output. |
void |
writeInt(java.io.DataOutput out,
int value)
Deprecated. Use writeInt(BufferedOutput, int) which is faster. |
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
writeInt(BufferedOutput, int)
which is faster.
java.io.IOException
- as specified data output does.void writeInt(com.devexperts.io.BufferedOutput 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
readInt(BufferedInput)
which is faster.
java.io.IOException
- as specified data input does.int readInt(com.devexperts.io.BufferedInput 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 |