org.sodatest.coercion.java
Class CurrencyAmountCoercionForJava.PatternFactory

java.lang.Object
  extended by 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:

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.


Constructor Summary
CurrencyAmountCoercionForJava.PatternFactory()
           
 
Method Summary
static Collection<String> currencyPatterns()
           
static Collection<String> currencyPatterns(char currencySymbol)
           
static Collection<String> currencyPatterns(char currencySymbol, char thousandSeparator, char decimalSeparator)
           
static Collection<String> currencyPatterns(char currencySymbol, char thousandSeparator, char decimalSeparator, int numberOfDecimalPlaces)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyAmountCoercionForJava.PatternFactory

public CurrencyAmountCoercionForJava.PatternFactory()
Method Detail

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.