@ Override public < T > T asObject ( String string , Class < T > valueType ) throws BugError { // at this point value type is guaranteed to be char or Character if ( string . length ( ) > 1 ) { throw new ConverterException ( "Trying to convert a larger string into a single character." ) ; } return ( T ) ( Character ) string . charAt ( 0 ) ; }
Return the first character from given string .