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