public class ShortStringField extends CompactIntField
ShortStringField represents a short (up to 4 characters) string
in a single integer with compact serialized form.
It can be used to represent short fixed-size character codes, such as MMID, etc.| Constructor and Description |
|---|
ShortStringField(int index,
String name) |
ShortStringField(int index,
String name,
SerialFieldType serialType) |
| Modifier and Type | Method and Description |
|---|---|
int |
parseString(String value)
Parses string representation of specified field value.
|
double |
toDouble(int value)
Converts raw QD int-value to meaningful double value, or to
Double.NaN if inapplicable. |
String |
toString(int value)
Returns string representation of specified field value.
|
readInt, readInt, writeInt, writeIntequals, getString, read, setString, toInt, writegetDefaultPropertyName, getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, setRecord, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIndex, getLocalName, getName, getPropertyName, getRecord, getSerialTypepublic ShortStringField(int index,
String name)
public ShortStringField(int index,
String name,
SerialFieldType serialType)
public 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 AbstractDataIntFieldCopyright © 2002–2025 Devexperts LLC. All rights reserved.