ch.tatool.core.data
Class StringConverter
java.lang.Object
ch.tatool.core.data.StringConverter
public class StringConverter
- extends Object
Contains handler methods that convert a String into other object types
- Author:
- Michael Ruflin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registerConverter
public static void registerConverter(Class<?> c,
StringConverter.Converter<?> converter)
containsConverter
public static boolean containsConverter(Class<?> type)
convert
public static Object convert(String s,
Class<?> type)
- Converts a String into another object type.
- Parameters:
s - the string to convert
- Throws:
RuntimeException - if conversion is not possible.
Copyright © 2012. All Rights Reserved.