|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.SimpleTypeCasterAnyType
public class SimpleTypeCasterAnyType
Cast implementation for non-numeric values that caches allowed casts assuming there is a small set of casts allowed.
Constructor Summary | |
---|---|
SimpleTypeCasterAnyType(java.lang.Class typeToCastTo)
Ctor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTypeCasterAnyType(java.lang.Class typeToCastTo)
typeToCastTo
- is the target typeMethod Detail |
---|
public boolean isNumericCast()
SimpleTypeCaster
isNumericCast
in interface SimpleTypeCaster
public java.lang.Object cast(java.lang.Object object)
SimpleTypeCaster
May performs a compatibility check and returns null if not compatible.
cast
in interface SimpleTypeCaster
object
- to cast
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |