net.sf.beanlib.provider.replicator
Class ArrayReplicator
java.lang.Object
net.sf.beanlib.provider.replicator.ReplicatorTemplate
net.sf.beanlib.provider.replicator.ArrayReplicator
- All Implemented Interfaces:
- ArrayReplicatorSpi
public class ArrayReplicator
- extends ReplicatorTemplate
- implements ArrayReplicatorSpi
Default implementation of ArrayReplicatorSpi
.
- Author:
- Joe D. Velopar
Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
chooseClass, createToInstance, createToInstance, createToInstanceWithComparator, getTargetCloned, newInstanceAsPrivileged, populateBean, putTargetCloned, replicate, replicate, replicateByBeanReplicatable, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
private static final ArrayReplicator.Factory factory
ArrayReplicator
protected ArrayReplicator(BeanTransformerSpi beanTransformer)
newArrayReplicatable
public static ArrayReplicator newArrayReplicatable(BeanTransformerSpi beanTransformer)
replicateArray
public <T> T replicateArray(Object arrayToCopy,
Class<T> toClass)
- Description copied from interface:
ArrayReplicatorSpi
- Returns a replicated array.
- Specified by:
replicateArray
in interface ArrayReplicatorSpi
- Type Parameters:
T
- target class type- Parameters:
arrayToCopy
- from arraytoClass
- target class