Method
toString
(Object o, String formatString, Locale locale)
Source from the content-addressed store, hash-verified
| 43 | |
| 44 | public class NumberRenderer implements AttributeRenderer { |
| 45 | @Override |
| 46 | public String toString(Object o, String formatString, Locale locale) { |
| 47 | // o will be instanceof Number |
| 48 | if (formatString==null ) return o.toString(); |
| 49 | Formatter f = new Formatter(locale); |
| 50 | f.format(formatString, o); |
| 51 | return f.toString(); |
| 52 | } |
| 53 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected