|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.kit.AbstractDataField
com.devexperts.qd.kit.AbstractDataIntField
public abstract class AbstractDataIntField
Method Summary | |
---|---|
boolean |
equals(int value1,
int value2)
Compares two specified field values for equality. |
int |
parseString(java.lang.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. |
int |
toInt(double value)
Converts meaningful double value to raw QD int-value, or to 0 if inapplicable. |
java.lang.String |
toString(int value)
Returns string representation of specified field value. |
Methods inherited from class com.devexperts.qd.kit.AbstractDataField |
---|
getIndex, getLocalName, getName, getRecord, getSerialType, setRecord, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.devexperts.qd.DataIntField |
---|
readInt, readInt, writeInt, writeInt |
Methods inherited from interface com.devexperts.qd.DataField |
---|
getIndex, getLocalName, getName, getRecord, getSerialType |
Method Detail |
---|
public java.lang.String toString(int value)
Integer.toString(value)
.
toString
in interface DataIntField
public int parseString(java.lang.String value)
Integer.parseInt(value)
.
parseString
in interface DataIntField
java.lang.IllegalArgumentException
- if string cannot be parsed.public double toDouble(int value)
Double.NaN
if inapplicable.
toDouble
in interface DataIntField
public int toInt(double value)
0
if inapplicable.
toInt
in interface DataIntField
public boolean equals(int value1, int value2)
value1 == value2
.
equals
in interface DataIntField
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |