org.springframework.core.convert.support
Class StringToCharacterConverter

java.lang.Object
  extended by org.springframework.core.convert.support.StringToCharacterConverter
All Implemented Interfaces:
Converter<java.lang.String,java.lang.Character>

final class StringToCharacterConverter
extends java.lang.Object
implements Converter<java.lang.String,java.lang.Character>

Converts a String to a Character.

Since:
3.0
Author:
Keith Donald

Constructor Summary
StringToCharacterConverter()
           
 
Method Summary
 java.lang.Character convert(java.lang.String source)
          Convert the source of type S to target type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToCharacterConverter

StringToCharacterConverter()
Method Detail

convert

public java.lang.Character convert(java.lang.String source)
Description copied from interface: Converter
Convert the source of type S to target type T.

Specified by:
convert in interface Converter<java.lang.String,java.lang.Character>
Parameters:
source - the source object to convert, which must be an instance of S
Returns:
the converted object, which must be an instance of T