org.mentawai.formatter
Class NumberFormatter
java.lang.Object
org.mentawai.formatter.NumberFormatter
- All Implemented Interfaces:
- Formatter
public class NumberFormatter
- extends Object
- implements Formatter
- Author:
- Marvin Herman Froeder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
REAL
public static final int REAL
- See Also:
- Constant Field Values
PERCENTAGE
public static final int PERCENTAGE
- See Also:
- Constant Field Values
CURRENCY
public static final int CURRENCY
- See Also:
- Constant Field Values
NumberFormatter
public NumberFormatter(int style)
- Parameters:
style -
NumberFormatter
public NumberFormatter(String pattern)
NumberFormatter
public NumberFormatter(String pattern,
DecimalFormatSymbols symbols)
format
public String format(Object value,
Locale loc)
- Description copied from interface:
Formatter
- Formats an output object from this action.
- Specified by:
format in interface Formatter
- Parameters:
value - The value to formatloc - The locale to use (if needed)
- Returns:
- The value formatted to a String
Copyright © 2011. All Rights Reserved.