public class MapperMetadata extends Object
IMapper
s in a IMapperRegistry
.Modifier | Constructor and Description |
---|---|
|
MapperMetadata(Class keyType,
Class valueType)
Initializes a new instance of the
MapperMetadata class. |
protected |
MapperMetadata(MapperMetadata metadata)
Initializes a new instance of the
MapperMetadata from the given instance class. |
Modifier and Type | Method and Description |
---|---|
static <TKey,TValue> |
create(Class<TKey> keyType,
Class<TValue> valueType,
IMapper<TKey,TValue> mapper)
Creates an instance for the specified mapper.
|
Class |
getKeyType() |
Class |
getValueType() |
public MapperMetadata(Class keyType, Class valueType)
MapperMetadata
class.keyType
- Type of the keys.valueType
- Type of the values.protected MapperMetadata(MapperMetadata metadata)
MapperMetadata
from the given instance class.metadata
- The metadata to copy key and value type from.