Class ShortTypeHandling
- java.lang.Object
- 
- org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
 
- 
 public class ShortTypeHandling extends java.lang.ObjectClass 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 SummaryConstructors Constructor Description ShortTypeHandling()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.CharactercastToChar(java.lang.Object object)static java.lang.ClasscastToClass(java.lang.Object object)static java.lang.EnumcastToEnum(java.lang.Object object, java.lang.Class<? extends java.lang.Enum> type)this class requires that the supplied enum is not fitting a Collection case for castingstatic java.lang.StringcastToString(java.lang.Object object)
 
- 
- 
- 
Method Detail- 
castToClasspublic static java.lang.Class castToClass(java.lang.Object object) 
 - 
castToStringpublic static java.lang.String castToString(java.lang.Object object) 
 - 
castToEnumpublic static java.lang.Enum castToEnum(java.lang.Object object, java.lang.Class<? extends java.lang.Enum> type)this class requires that the supplied enum is not fitting a Collection case for casting
 - 
castToCharpublic static java.lang.Character castToChar(java.lang.Object object) 
 
- 
 
-