org.apache.commons.convert1
Class IdentityConverter

java.lang.Object
  extended by org.apache.commons.convert1.IdentityConverter
All Implemented Interfaces:
Converter

public class IdentityConverter
extends Object
implements Converter

Converter that does no conversion.

Since:
0.1
Author:
Henri Yandell

Constructor Summary
IdentityConverter()
           
 
Method Summary
 Object convert(Class type, Object value)
          Performs no conversion, merely returns the input as output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityConverter

public IdentityConverter()
Method Detail

convert

public Object convert(Class type,
                      Object value)
Performs no conversion, merely returns the input as output.

Specified by:
convert in interface Converter
Parameters:
type - Data type to which this value should be converted
value - The input value to be converted
Throws:
ConversionException - if conversion cannot be performed successfully


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.