net.sf.beanlib.provider.replicator
Class HeteroImmutableReplicator
java.lang.Object
net.sf.beanlib.provider.replicator.ImmutableReplicator
net.sf.beanlib.provider.replicator.HeteroImmutableReplicator
- All Implemented Interfaces:
- ImmutableReplicatorSpi
public class HeteroImmutableReplicator
- extends ImmutableReplicator
Immutable Object Replicator that supports replication across heterogeneous enums.
- Author:
- Joe D. Velopar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
public static final HeteroImmutableReplicator.Factory factory
HeteroImmutableReplicator
protected HeteroImmutableReplicator()
newImmutableReplicatable
public static HeteroImmutableReplicator newImmutableReplicatable(BeanTransformerSpi beanTransformer)
replicateImmutable
public <V,T> T replicateImmutable(V immutableFrom,
Class<T> toClass)
- Description copied from interface:
ImmutableReplicatorSpi
- Returns a replicated immutable object.
- Specified by:
replicateImmutable
in interface ImmutableReplicatorSpi
- Overrides:
replicateImmutable
in class ImmutableReplicator
- Type Parameters:
V
- source immutable object typeT
- target class type- Parameters:
immutableFrom
- source immutable objecttoClass
- target class