net.lessy.util.format.impl
Class FormatCurrency
java.lang.Object
net.lessy.util.format.impl.FormatFloat
net.lessy.util.format.impl.FormatCurrency
- All Implemented Interfaces:
- FormatIF
public class FormatCurrency
- extends FormatFloat
Implementation of a currency formatter. The values are formatted with interpunctuation (thousands-separator) and with exactly
2 decimal digits.
- Author:
- hl
|
Method Summary |
protected int |
getMaxDecimals()
Returns the maximal number of decimal places (two) |
protected int |
getMinDecimals()
Returns the minimal number of decimal places (two) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatCurrency
public FormatCurrency()
getMinDecimals
protected int getMinDecimals()
- Returns the minimal number of decimal places (two)
- Overrides:
getMinDecimals in class FormatFloat
getMaxDecimals
protected int getMaxDecimals()
- Returns the maximal number of decimal places (two)
- Overrides:
getMaxDecimals in class FormatFloat
Copyright © 2012. All Rights Reserved.