Package org.cyclos.impl.utils.formatting
Class NumberValueFormatter
- java.lang.Object
-
- org.cyclos.impl.utils.formatting.NumberValueFormatter
-
- All Implemented Interfaces:
ValueFormatter
public class NumberValueFormatter extends Object implements ValueFormatter
A formatter which formats numbers, optionally with a scale
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(Object bean, Object value, FormatterImpl formatter)Formats the given valuestatic NumberValueFormatterinstance(int scale)
-
-
-
Method Detail
-
instance
public static NumberValueFormatter instance(int scale)
-
format
public String format(Object bean, Object value, FormatterImpl formatter)
Description copied from interface:ValueFormatterFormats the given value- Specified by:
formatin interfaceValueFormatter
-
-