public class TimeMillisField extends CompactIntField
Constructor and Description |
---|
TimeMillisField(int index,
String name) |
TimeMillisField(int index,
String name,
SerialFieldType serialType) |
Modifier and Type | Method and Description |
---|---|
String |
getString(RecordCursor cursor) |
int |
parseString(String value)
Parses string representation of specified field value.
|
protected long |
parseStringLong(String 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.
|
protected String |
toStringLong(long value) |
void |
write(com.devexperts.io.BufferedOutput out,
RecordCursor cursor) |
readInt, readInt, writeInt, writeInt
equals
getDefaultPropertyName, getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, setRecord, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType
public TimeMillisField(int index, String name)
public TimeMillisField(int index, String name, SerialFieldType serialType)
public String getString(RecordCursor cursor)
getString
in interface DataField
getString
in class AbstractDataIntField
public void setString(RecordCursor cursor, String value)
setString
in interface DataField
setString
in class AbstractDataIntField
public void write(com.devexperts.io.BufferedOutput out, RecordCursor cursor) throws IOException
write
in interface DataField
write
in class AbstractDataIntField
IOException
public void read(com.devexperts.io.BufferedInput in, RecordCursor cursor) throws IOException
read
in interface DataField
read
in class AbstractDataIntField
IOException
public String toString(int value)
AbstractDataIntField
Integer.toString(value)
.toString
in interface DataIntField
toString
in class AbstractDataIntField
public int parseString(String value)
AbstractDataIntField
Integer.parseInt(value)
.parseString
in interface DataIntField
parseString
in class AbstractDataIntField
public double toDouble(int value)
AbstractDataIntField
Double.NaN
if inapplicable.toDouble
in interface DataIntField
toDouble
in class AbstractDataIntField
public int toInt(double value)
AbstractDataIntField
0
if inapplicable.toInt
in interface DataIntField
toInt
in class AbstractDataIntField
protected String toStringLong(long value)
protected long parseStringLong(String value)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.