public static String getTypeName ( Type type ) { if ( type instanceof Class ) { Class < ? > clazz = ( Class < ? > ) type ; return clazz . isArray ( ) ? ( getTypeName ( clazz . getComponentType ( ) ) + "[]" ) : clazz . getName ( ) ; } else { return type . toString ( ) ; } }
Returns the display name of a Type .