net.lessy.util.format.impl
Class FormatCurrency

java.lang.Object
  extended by net.lessy.util.format.impl.FormatFloat
      extended by 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

Constructor Summary
FormatCurrency()
           
 
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 net.lessy.util.format.impl.FormatFloat
format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatCurrency

public FormatCurrency()
Method Detail

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.