net.sf.doolin.util
Class ChainedItemConverter<S,T,U>

java.lang.Object
  extended by net.sf.doolin.util.ChainedItemConverter<S,T,U>
Type Parameters:
S - Source type
T - Intermediary type
U - Target type
All Implemented Interfaces:
ItemConverter<S,U>

Deprecated. Use Functions.compose(com.google.common.base.Function, com.google.common.base.Function) instead.

@Deprecated
public class ChainedItemConverter<S,T,U>
extends Object
implements ItemConverter<S,U>

Chain of two ItemConverters.

Author:
Damien Coraboeuf

Constructor Summary
ChainedItemConverter(ItemConverter<S,T> firstItemConverter, ItemConverter<T,U> secondItemConverter)
          Deprecated. Constructor.
 
Method Summary
 U convert(S 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

ChainedItemConverter

public ChainedItemConverter(ItemConverter<S,T> firstItemConverter,
                            ItemConverter<T,U> secondItemConverter)
Deprecated. 
Constructor.

Parameters:
firstItemConverter - Conversion from S to T
secondItemConverter - Conversion from T to U
Method Detail

convert

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

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


Copyright © 2011. All Rights Reserved.