Class ShortTypeHandling
java.lang.Object
org.codehaus.groovy.runtime.typehandling.ShortTypeHandling
public class ShortTypeHandling
extends java.lang.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 SummaryConstructors Constructor Description ShortTypeHandling()
- 
Method SummaryModifier 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)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ShortTypeHandlingpublic ShortTypeHandling()
 
- 
- 
Method Details- 
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)
 
-