IntegerConverter
with suitable format string insteadpublic class ZeroPaddingIntegerConverter extends IntegerConverter
INSTANCE
Constructor and Description |
---|
ZeroPaddingIntegerConverter(int zeroPadLength)
Deprecated.
Constructs this converter.
|
Modifier and Type | Method and Description |
---|---|
String |
convertToString(Integer value,
Locale locale)
Deprecated.
Converts the given value to a string.
|
convertToObject, getTargetType
newNumberFormat
getNumberFormat, parse
newConversionException, parse
public ZeroPaddingIntegerConverter(int zeroPadLength)
zeroPadLength
- Minimum length of String to be outputted (will be zero-padded).public String convertToString(Integer value, Locale locale)
IConverter
convertToString
in interface IConverter<Integer>
convertToString
in class AbstractNumberConverter<Integer>
value
- The value to convertlocale
- The locale used to convert the valueAbstractConverter.convertToString(java.lang.Object,
java.util.Locale)
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.