public class NumberRenderer extends Object implements AttributeRenderer
Byte
, Short
, Integer
, Long
, and BigInteger
as well as
Float
, Double
, and BigDecimal
. You pass in a format string suitable
for Formatter.format(java.lang.String, java.lang.Object...)
.
For example, %10d
emits a number as a decimal int padding to 10 char.
This can even do long
to Date
conversions using the format string.
Constructor and Description |
---|
NumberRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
toString(Object o,
String formatString,
Locale locale) |
Copyright © 2024. All rights reserved.