ma.glasnost.orika.impl.mapping.strategy
Class MappingStrategyKey

java.lang.Object
  extended by ma.glasnost.orika.impl.mapping.strategy.MappingStrategyKey

public final class MappingStrategyKey
extends Object

MappingStrategyKey defines the minimum information necessary to cache a particular mapping strategy

Author:
matt.deboer@gmail.com

Constructor Summary
MappingStrategyKey(Class<?> rawSourceType, Type sourceType, Type destinationType, boolean destinationProvided)
          Constructs a new instance of MappingStrategyKey
 
Method Summary
 boolean equals(Object obj)
           
protected  Type getDestinationType()
           
protected  Class<?> getRawSourceType()
           
protected  Type getSourceType()
           
 int hashCode()
           
protected  boolean isDestinationProvided()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingStrategyKey

public MappingStrategyKey(Class<?> rawSourceType,
                          Type sourceType,
                          Type destinationType,
                          boolean destinationProvided)
Constructs a new instance of MappingStrategyKey

Parameters:
rawSourceType -
sourceType -
destinationType -
destinationProvided -
Method Detail

getRawSourceType

protected Class<?> getRawSourceType()
Returns:
the raw source class of the associated mapping strategy

getSourceType

protected Type getSourceType()
Returns:
the source type of the associated mapping strategy

getDestinationType

protected Type getDestinationType()
Returns:
the destination type of the associated mapping strategy

isDestinationProvided

protected boolean isDestinationProvided()
Returns:
true if the destination is provided

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Glasnost. All Rights Reserved.