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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadInt, readInt, writeInt, writeIntgetIndex, getLocalName, getName, getPropertyName, getRecord, getSerialTypepublic 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 DataFieldIOExceptionpublic void read(com.devexperts.io.BufferedInput in,
RecordCursor cursor)
throws IOException
read in interface DataFieldIOExceptionpublic String toString(int value)
Integer.toString(value).toString in interface DataIntFieldpublic int parseString(String value)
Integer.parseInt(value).parseString in interface DataIntFieldIllegalArgumentException - if string cannot be parsed.public double toDouble(int value)
Double.NaN if inapplicable.toDouble in interface DataIntFieldpublic int toInt(double value)
0 if inapplicable.toInt in interface DataIntFieldpublic boolean equals(int value1,
int value2)
value1 == value2.equals in interface DataIntFieldCopyright © 2002–2025 Devexperts LLC. All rights reserved.