public class StringConverter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
StringConverter.Converter<T> |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsConverter(Class<?> type) |
static Object |
convert(String s,
Class<?> type)
Converts a String into another object type.
|
static void |
registerConverter(Class<?> c,
StringConverter.Converter<?> converter) |
public static void registerConverter(Class<?> c, StringConverter.Converter<?> converter)
public static boolean containsConverter(Class<?> type)
public static Object convert(String s, Class<?> type)
s - the string to convertRuntimeException - if conversion is not possible.Copyright © 2012. All Rights Reserved.