Class ShortTypeHandling
- java.lang.Object
-
- org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
-
public class ShortTypeHandling extends Object
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
Constructors Constructor Description ShortTypeHandling()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharactercastToChar(Object object)static ClasscastToClass(Object object)static EnumcastToEnum(Object object, Class<? extends Enum> type)this class requires that the supplied enum is not fitting a Collection case for castingstatic StringcastToString(Object object)
-