Class StringConverter
- java.lang.Object
-
- net.sf.basedb.util.extensions.debug.StringConverter
-
public class StringConverter extends Object
Convert strings to other data types. This class is experimental only and may change in the future.- Version:
- 2.7
- Author:
- nicklas
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description private static Map<Class<?>,StringConverter>
converter
private Object
defaultValue
private Type
type
-
Constructor Summary
Constructors Modifier Constructor Description private
StringConverter(Type type, Object defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private Object
convert(String value)
static Object
convertString(Class toClass, String value)
-
-
-
Field Detail
-
converter
private static Map<Class<?>,StringConverter> converter
-
type
private final Type type
-
defaultValue
private final Object defaultValue
-
-