public abstract class AbstractDataIntField extends AbstractDataField implements DataIntField
Modifier and Type | Method and Description |
---|---|
boolean |
equals(int value1,
int value2)
Compares two specified field values for equality.
|
String |
getString(RecordCursor cursor) |
int |
parseString(String value)
Parses string representation of specified field value.
|
void |
read(com.devexperts.io.BufferedInput in,
RecordCursor cursor) |
void |
setString(RecordCursor cursor,
String value) |
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 |
write(com.devexperts.io.BufferedOutput out,
RecordCursor cursor) |
getDefaultPropertyName, getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, setRecord, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readInt, readInt, writeInt, writeInt
getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType
public String getString(RecordCursor cursor)
public void setString(RecordCursor cursor, String value)
public void write(com.devexperts.io.BufferedOutput out, RecordCursor cursor) throws IOException
write
in interface DataField
IOException
public void read(com.devexperts.io.BufferedInput in, RecordCursor cursor) throws IOException
read
in interface DataField
IOException
public String toString(int value)
Integer.toString(value)
.toString
in interface DataIntField
public int parseString(String value)
Integer.parseInt(value)
.parseString
in interface DataIntField
IllegalArgumentException
- if string cannot be parsed.public double toDouble(int value)
Double.NaN
if inapplicable.toDouble
in interface DataIntField
public int toInt(double value)
0
if inapplicable.toInt
in interface DataIntField
public boolean equals(int value1, int value2)
value1 == value2
.equals
in interface DataIntField
Copyright © 2002–2025 Devexperts LLC. All rights reserved.