public class LongField extends CompactIntField
LongField represents a long integer field with compact serialized form.| Constructor and Description |
|---|
LongField(int index,
String name) |
LongField(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, writeIntequalsgetDefaultPropertyName, getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, setRecord, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIndex, getLocalName, getName, getPropertyName, getRecord, getSerialTypepublic LongField(int index,
String name)
public LongField(int index,
String name,
SerialFieldType serialType)
public String getString(RecordCursor cursor)
getString in interface DataFieldgetString in class AbstractDataIntFieldpublic void setString(RecordCursor cursor, String value)
setString in interface DataFieldsetString in class AbstractDataIntFieldpublic void write(com.devexperts.io.BufferedOutput out,
RecordCursor cursor)
throws IOException
write in interface DataFieldwrite in class AbstractDataIntFieldIOExceptionpublic void read(com.devexperts.io.BufferedInput in,
RecordCursor cursor)
throws IOException
read in interface DataFieldread in class AbstractDataIntFieldIOExceptionpublic String toString(int value)
AbstractDataIntFieldInteger.toString(value).toString in interface DataIntFieldtoString in class AbstractDataIntFieldpublic int parseString(String value)
AbstractDataIntFieldInteger.parseInt(value).parseString in interface DataIntFieldparseString in class AbstractDataIntFieldpublic double toDouble(int value)
AbstractDataIntFieldDouble.NaN if inapplicable.toDouble in interface DataIntFieldtoDouble in class AbstractDataIntFieldpublic int toInt(double value)
AbstractDataIntField0 if inapplicable.toInt in interface DataIntFieldtoInt in class AbstractDataIntFieldprotected String toStringLong(long value)
protected long parseStringLong(String value)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.