public class BasicTypeConverter extends Object
Modifier and Type | Field and Description |
---|---|
static IStringObjectConverter |
BOOLEAN_CONVERTER
String -> Boolean converter.
|
static IStringObjectConverter |
BYTE_CONVERTER
String -> Byte converter.
|
static IStringObjectConverter |
CHARACTER_CONVERTER
String -> Character converter.
|
static IStringObjectConverter |
DOUBLE_CONVERTER
String -> Double converter.
|
static IStringObjectConverter |
FLOAT_CONVERTER
String -> Float converter.
|
static IStringObjectConverter |
INTEGER_CONVERTER
String -> Integer converter.
|
static IStringObjectConverter |
LONG_CONVERTER
String -> Long converter.
|
static IStringObjectConverter |
SHORT_CONVERTER
String -> Short converter.
|
static IStringObjectConverter |
STRING_CONVERTER
String -> String converter.
|
Constructor and Description |
---|
BasicTypeConverter() |
Modifier and Type | Method and Description |
---|---|
static IObjectStringConverter |
getBasicObjectConverter(Class<?> clazz)
Get a X -> String converter for a source clazz.
|
static IStringObjectConverter |
getBasicStringConverter(Class<?> clazz)
Get a String -> X converter for a target clazz.
|
static boolean |
isBuiltInType(Class clazz)
Test if a clazz is a built-in type.
|
public static IStringObjectConverter STRING_CONVERTER
public static IStringObjectConverter INTEGER_CONVERTER
public static IStringObjectConverter LONG_CONVERTER
public static IStringObjectConverter FLOAT_CONVERTER
public static IStringObjectConverter DOUBLE_CONVERTER
public static IStringObjectConverter BOOLEAN_CONVERTER
public static IStringObjectConverter SHORT_CONVERTER
public static IStringObjectConverter BYTE_CONVERTER
public static IStringObjectConverter CHARACTER_CONVERTER
public static boolean isBuiltInType(Class clazz)
clazz
- The clazz.public static IStringObjectConverter getBasicStringConverter(Class<?> clazz)
clazz
- The clazz.public static IObjectStringConverter getBasicObjectConverter(Class<?> clazz)
clazz
- The clazz.Copyright © 2012. All Rights Reserved.