com.espertech.esper.util
Class SimpleTypeParserFactory
java.lang.Object
com.espertech.esper.util.SimpleTypeParserFactory
public class SimpleTypeParserFactory
- extends Object
A factory for creating an instance of a parser that parses a String and returns a target type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTypeParserFactory
public SimpleTypeParserFactory()
getParser
public static SimpleTypeParser getParser(Class clazz)
- Returns a parsers for the String value using the given Java built-in class for parsing.
- Parameters:
clazz
- is the class to parse the value to
- Returns:
- value matching the type passed in