net.sf.doolin.util
Class IdentityConverter<T>

java.lang.Object
  extended by net.sf.doolin.util.IdentityConverter<T>
Type Parameters:
T - Type of both the source and target.
All Implemented Interfaces:
ItemConverter<T,T>

Deprecated. Use Functions.identity() instead

@Deprecated
public class IdentityConverter<T>
extends Object
implements ItemConverter<T,T>

This converter returns the source without any conversion.

Author:
Damien Coraboeuf

Constructor Summary
IdentityConverter()
          Deprecated.  
 
Method Summary
 T convert(T source)
          Deprecated. Convert a source to a target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityConverter

public IdentityConverter()
Deprecated. 
Method Detail

convert

public T convert(T source)
Deprecated. 
Description copied from interface: ItemConverter
Convert a source to a target

Specified by:
convert in interface ItemConverter<T,T>
Parameters:
source - Source object
Returns:
Target object


Copyright © 2011. All Rights Reserved.