ma.glasnost.orika.metadata
Class MapperKey

java.lang.Object
  extended by ma.glasnost.orika.metadata.MapperKey
All Implemented Interfaces:
MappedTypePair<Object,Object>

public class MapperKey
extends Object
implements MappedTypePair<Object,Object>

MapperKey represents a key which can be used to store the types mapped by a given Mapper.


Constructor Summary
MapperKey(Type<?> aType, Type<?> bType)
          Constructs a new MapperKey instance
 
Method Summary
 boolean equals(Object o)
           
 Type<Object> getAType()
           
 Type<Object> getBType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapperKey

public MapperKey(Type<?> aType,
                 Type<?> bType)
Constructs a new MapperKey instance

Parameters:
aType -
bType -
Method Detail

equals

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

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getAType

public Type<Object> getAType()
Specified by:
getAType in interface MappedTypePair<Object,Object>
Returns:
the 'A' type for this mapped pair

getBType

public Type<Object> getBType()
Specified by:
getBType in interface MappedTypePair<Object,Object>
Returns:
the 'B' type for this mapped pair


Copyright © 2013 Glasnost. All Rights Reserved.