public class SimpleTypeCasterAnyType extends java.lang.Object implements SimpleTypeCaster
Constructor and Description |
---|
SimpleTypeCasterAnyType(java.lang.Class typeToCastTo)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SimpleTypeCasterAnyType(java.lang.Class typeToCastTo)
typeToCastTo
- is the target typepublic 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