public class DataConversion extends Object
ConversionHandler
Constructor and Description |
---|
DataConversion() |
Modifier and Type | Method and Description |
---|---|
static void |
addConversionHandler(Class type,
ConversionHandler handler)
Register a new
ConversionHandler with the factory. |
static boolean |
canConvert(Class toType,
Class convertFrom) |
static <T> T |
convert(Object in,
Class<T> toType) |
static void |
main(String[] args) |
public static void addConversionHandler(Class type, ConversionHandler handler)
ConversionHandler
with the factory.type
- - Target type represented by the conversion handler.handler
- - An instance of the handler.public static void main(String[] args)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.