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, writeInt
equals, getString, read, setString, toInt, write
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 ShortStringField(int index, String name)
public ShortStringField(int index, String name, SerialFieldType serialType)
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
Copyright © 2002–2025 Devexperts LLC. All rights reserved.