org.sodatest.coercion.java
Class CurrencyAmountCoercionForJava.PatternFactory
java.lang.Object
org.sodatest.coercion.java.CurrencyAmountCoercionForJava.PatternFactory
- Enclosing class:
- CurrencyAmountCoercionForJava<T>
public static final class CurrencyAmountCoercionForJava.PatternFactory
- extends Object
A class of static methods to aid in the construction of lists of DecimalFormat patterns for
use with the CurrencyAmountCoercionForJava.
The currencyPatterns() function uses defaults for all parameters and produces the
following patterns:
- #,##0.00
- -#,##0.00
- (#,##0.00)
- $#,##0.00
- -$#,##0.00
- $-#,##0.00
- ($#,##0.00)
- $(#,##0.00)
Using the other variations of the functions allows you to replace the dollar sign (currencySymbol),
the comma (thousandSeparator), the period (decimalSeparator) and the number of decimal places
(numberOfDecimalPlaces), respectively. If numberOfDecimalPlaces is 0, the decimalSeparator
will not be used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrencyAmountCoercionForJava.PatternFactory
public CurrencyAmountCoercionForJava.PatternFactory()
currencyPatterns
public static Collection<String> currencyPatterns()
currencyPatterns
public static Collection<String> currencyPatterns(char currencySymbol)
currencyPatterns
public static Collection<String> currencyPatterns(char currencySymbol,
char thousandSeparator,
char decimalSeparator)
currencyPatterns
public static Collection<String> currencyPatterns(char currencySymbol,
char thousandSeparator,
char decimalSeparator,
int numberOfDecimalPlaces)
Copyright © 2010-2011 Belmont Technology Pty Ltd. All Rights Reserved.