public interface DataIntField extends DataField
DataIntField
defines identity and access API for Int-fields.Modifier and Type | Method and Description |
---|---|
boolean |
equals(int value1,
int value2)
Compares two specified field values for equality.
|
int |
parseString(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(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. |
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(DataOutput out,
int value)
Deprecated.
Use
writeInt(BufferedOutput, int) which is faster. |
getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, getString, read, setString, write
String toString(int value)
int parseString(String value)
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(DataOutput out, int value) throws IOException
writeInt(BufferedOutput, int)
which is faster.IOException
- as specified data output does.void writeInt(com.devexperts.io.BufferedOutput out, int value) throws IOException
IOException
- as specified data output does.int readInt(DataInput in) throws IOException
readInt(BufferedInput)
which is faster.IOException
- as specified data input does.int readInt(com.devexperts.io.BufferedInput in) throws IOException
IOException
- as specified data input does.Copyright © 2002–2025 Devexperts LLC. All rights reserved.