public class ConversionTools extends Object
| Constructor and Description |
|---|
ConversionTools() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canConvert(Class<?> clazz) |
static <U> U |
convert(Class<U> type,
byte[] representation) |
static byte[] |
convert(Object o) |
static byte[] |
convert(Object o,
Class<?> expected) |
static <U> U |
convertFromString(Class<U> type,
String representation) |
static <U> U |
convertFromStringReverted(Class<U> type,
String representation) |
static String |
convertToString(Object o) |
static String |
convertToString(Object o,
Class<?> expected) |
static String |
convertToStringReverted(Object o,
Class<?> expected) |
static <T> T |
getDefaultValue(Class<T> expected) |
public static boolean canConvert(Class<?> clazz)
public static <U> U convert(Class<U> type, byte[] representation)
public static <U> U convertFromStringReverted(Class<U> type, String representation)
public static byte[] convert(Object o)
public static <T> T getDefaultValue(Class<T> expected)
Copyright © 2016. All Rights Reserved.