public class ConvertUtil extends Object
Modifier and Type | Field and Description |
---|---|
static IConverter |
DELEGATE_TO_REGISTERED_CONVERTER
A converter that delegates calls to it to a registered converter.
|
Constructor and Description |
---|
ConvertUtil() |
Modifier and Type | Method and Description |
---|---|
static <T,R extends Collection<T>> |
convert(Class<T> valueType,
Iterable input,
R output,
Locale locale,
String pattern) |
static <T> T |
convert(Class<T> type,
Object value,
Locale locale,
String pattern) |
static IConverter |
createConverter(Class type)
Create the appropriated converter for the given type.
|
static void |
deregister(Class type) |
static void |
register(Class type,
Class<? extends IConverter> converterClass) |
public static final IConverter DELEGATE_TO_REGISTERED_CONVERTER
DelegateToRegisteredConverter
public static void register(Class type, Class<? extends IConverter> converterClass)
public static void deregister(Class type)
public static IConverter createConverter(Class type) throws UnsupportedConversionTypeException
type
- the type that needs to be converted.UnsupportedConversionTypeException
- if the conversion is not supported.public static <T,R extends Collection<T>> Collection<T> convert(Class<T> valueType, Iterable input, R output, Locale locale, String pattern)
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.