com.espertech.esper.util
Class SimpleTypeCasterFactory
java.lang.Object
com.espertech.esper.util.SimpleTypeCasterFactory
public class SimpleTypeCasterFactory
- extends Object
Factory for casters, which take an object and safely cast to a given type, performing coercion or dropping
precision if required.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTypeCasterFactory
public SimpleTypeCasterFactory()
getCaster
public static SimpleTypeCaster getCaster(Class targetType)
- Returns a caster that casts to a target type.
- Parameters:
targetType
- to cast to
- Returns:
- caster for casting objects to the required type