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, getTargetTypenewNumberFormatgetNumberFormat, parsenewConversionException, parsepublic ZeroPaddingIntegerConverter(int zeroPadLength)
zeroPadLength - Minimum length of String to be outputted (will be zero-padded).public String convertToString(Integer value, Locale locale)
IConverterconvertToString 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–2015 Apache Software Foundation. All rights reserved.