net.sf.beanlib.provider.replicator
Class HeteroImmutableReplicator

java.lang.Object
  extended by net.sf.beanlib.provider.replicator.ImmutableReplicator
      extended by 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

Nested Class Summary
private static class HeteroImmutableReplicator.Factory
          Factory for HeteroImmutableReplicator
 
Field Summary
static HeteroImmutableReplicator.Factory factory
           
 
Constructor Summary
protected HeteroImmutableReplicator()
           
 
Method Summary
static HeteroImmutableReplicator newImmutableReplicatable(BeanTransformerSpi beanTransformer)
           
<V,T> T
replicateImmutable(V immutableFrom, Class<T> toClass)
          Returns a replicated immutable object.
 
Methods inherited from class net.sf.beanlib.provider.replicator.ImmutableReplicator
getDefaultPrimitiveValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public static final HeteroImmutableReplicator.Factory factory
Constructor Detail

HeteroImmutableReplicator

protected HeteroImmutableReplicator()
Method Detail

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 type
T - target class type
Parameters:
immutableFrom - source immutable object
toClass - target class