Class ShortTypeHandling
java.lang.Object
org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
Class providing various short paths for type conversions. Read the comments
to what conditions have to be met to get valid results!
Any method here must not depend on the groovy runtime.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Character
castToChar
(Object object) static Class
castToClass
(Object object) static Enum
castToEnum
(Object object, Class<? extends Enum> type) this class requires that the supplied enum is not fitting a Collection case for castingstatic String
castToString
(Object object)
-
Constructor Details
-
ShortTypeHandling
public ShortTypeHandling()
-
-
Method Details
-
castToClass
-
castToString
-
castToEnum
this class requires that the supplied enum is not fitting a Collection case for casting -
castToChar
-