public static java . lang . Character toCharacter ( Object arg ) throws NoSuchMethodException { if ( arg instanceof java . lang . Integer ) return boxToCharacter ( ( char ) unboxToInt ( arg ) ) ; if ( arg instanceof java . lang . Short ) return boxToCharacter ( ( char ) unboxToShort ( arg ) ) ; if ( arg instanceof java . lang . Character ) return ( java . lang . Character ) arg ; if ( arg instanceof java . lang . Long ) return boxToCharacter ( ( char ) unboxToLong ( arg ) ) ; if ( arg instanceof java . lang . Byte ) return boxToCharacter ( ( char ) unboxToByte ( arg ) ) ; if ( arg instanceof java . lang . Float ) return boxToCharacter ( ( char ) unboxToFloat ( arg ) ) ; if ( arg instanceof java . lang . Double ) return boxToCharacter ( ( char ) unboxToDouble ( arg ) ) ; throw new NoSuchMethodException ( ) ; }
arg . toChar