com.espertech.esper.util
Class SimpleTypeCasterFactory

java.lang.Object
  extended by com.espertech.esper.util.SimpleTypeCasterFactory

public class SimpleTypeCasterFactory
extends java.lang.Object

Factory for casters, which take an object and safely cast to a given type, performing coercion or dropping precision if required.


Constructor Summary
SimpleTypeCasterFactory()
           
 
Method Summary
static SimpleTypeCaster getCaster(java.lang.Class fromType, java.lang.Class targetType)
          Returns a caster that casts to a target type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeCasterFactory

public SimpleTypeCasterFactory()
Method Detail

getCaster

public static SimpleTypeCaster getCaster(java.lang.Class fromType,
                                         java.lang.Class targetType)
Returns a caster that casts to a target type.

Parameters:
fromType - can be null, if not known
targetType - to cast to
Returns:
caster for casting objects to the required type

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com