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

java.lang.Object
  extended by net.sf.doolin.util.CopyFunction<T>
Type Parameters:
T - Type of both the target and source.
All Implemented Interfaces:
com.google.common.base.Function<T,T>

public class CopyFunction<T>
extends Object
implements com.google.common.base.Function<T,T>

This class performs a conversion by performing a copy using an ItemCopier. The type of the target is identical to the one of the source.

Author:
Damien Coraboeuf

Constructor Summary
CopyFunction()
           
 
Method Summary
 T apply(T source)
           
 void setCopier(ItemCopier<T> copier)
          Sets the copier to use (required)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

CopyFunction

public CopyFunction()
Method Detail

apply

public T apply(T source)
Specified by:
apply in interface com.google.common.base.Function<T,T>

setCopier

public void setCopier(ItemCopier<T> copier)
Sets the copier to use (required)

Parameters:
copier - Copier implementation


Copyright © 2011. All Rights Reserved.