com.espertech.esper.util
Interface SimpleTypeCaster

All Known Implementing Classes:
SimpleTypeCasterAnyType

public interface SimpleTypeCaster

Interface for casting.


Method Summary
 java.lang.Object cast(java.lang.Object object)
          Casts an object to another type, typically for numeric types.
 boolean isNumericCast()
          Returns true to indicate that the cast target type is numeric.
 

Method Detail

cast

java.lang.Object cast(java.lang.Object object)
Casts an object to another type, typically for numeric types.

May performs a compatibility check and returns null if not compatible.

Parameters:
object - to cast
Returns:
casted or transformed object, possibly the same, or null if the cast cannot be made

isNumericCast

boolean isNumericCast()
Returns true to indicate that the cast target type is numeric.

Returns:
true for numeric cast

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