org.springframework.core.convert.support
Class NumberToCharacterConverter

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

final class NumberToCharacterConverter
extends java.lang.Object
implements Converter<java.lang.Number,java.lang.Character>

Converts from any JDK-standard Number implementation to a Character.

Since:
3.0
Author:
Keith Donald
See Also:
Character, Short, Integer, Long, BigInteger, Float, Double, BigDecimal

Constructor Summary
NumberToCharacterConverter()
           
 
Method Summary
 java.lang.Character convert(java.lang.Number 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

NumberToCharacterConverter

NumberToCharacterConverter()
Method Detail

convert

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

Specified by:
convert in interface Converter<java.lang.Number,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