|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectquickfix.field.converter.DoubleConverter
public class DoubleConverter
Converts between a double and a String.
Constructor Summary | |
---|---|
DoubleConverter()
|
Method Summary | |
---|---|
static java.lang.String |
convert(double d)
Converts a double to a string with no padding. |
static java.lang.String |
convert(double d,
int padding)
Converts a double to a string with padding. |
static double |
convert(java.lang.String value)
Convert a String value to a double. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleConverter()
Method Detail |
---|
public static java.lang.String convert(double d)
d
- the double to convert
convert(double, int)
public static java.lang.String convert(double d, int padding)
d
- the double to convertpadding
- the number of zeros to add to end of the formatted double
public static double convert(java.lang.String value) throws FieldConvertError
value
- the String value to convert
FieldConvertError
- if the String is not a valid double pattern.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |