net.sf.beanlib.provider.replicator
Class DateReplicator
java.lang.Object
net.sf.beanlib.provider.replicator.ReplicatorTemplate
net.sf.beanlib.provider.replicator.DateReplicator
- All Implemented Interfaces:
- DateReplicatorSpi
public class DateReplicator
- extends ReplicatorTemplate
- implements DateReplicatorSpi
Default implementation of DateReplicatorSpi
.
- 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 DateReplicator.Factory factory
DateReplicator
protected DateReplicator(BeanTransformerSpi beanTransformer)
newDateReplicatable
public static DateReplicator newDateReplicatable(BeanTransformerSpi beanTransformer)
replicateDate
public <T> T replicateDate(Date fromDate,
Class<T> toClass)
- Description copied from interface:
DateReplicatorSpi
- Returns a replicated date.
- Specified by:
replicateDate
in interface DateReplicatorSpi
- Type Parameters:
T
- target class type- Parameters:
fromDate
- from datetoClass
- target class