ma.glasnost.orika.metadata
Class MapperKey
java.lang.Object
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 |
MapperKey
public MapperKey(Type<?> aType,
Type<?> bType)
- Constructs a new MapperKey instance
- Parameters:
aType - bType -
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.