org.apache.commons.convert1
Class IdentityConverter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityConverter
public IdentityConverter()
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 convertedvalue
- The input value to be converted
- Throws:
ConversionException
- if conversion cannot be performed
successfully
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.