net.sf.doolin.util
Class CopyFunction<T>
java.lang.Object
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
| 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 |
CopyFunction
public CopyFunction()
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.