WireType
- public class UnambiguousConverterMap<WireType> extends Object implements ConverterSelectionStrategy<WireType>
Constructor and Description |
---|
UnambiguousConverterMap() |
Modifier and Type | Method and Description |
---|---|
void |
addConverter(String key,
Converter<WireType> converter)
Adds a new converter to this map which will be registered under a given
key.
|
boolean |
equals(Object obj) |
Converter<WireType> |
getConverter(String key)
Tries to look up the converter designated by @a key.
|
int |
hashCode() |
public Converter<WireType> getConverter(String key)
ConverterSelectionStrategy
getConverter
in interface ConverterSelectionStrategy<WireType>
key
- the keypublic void addConverter(String key, Converter<WireType> converter)
key
- the keyconverter
- the converterIllegalArgumentException
- in case there already is a converter with the specified keyCopyright © 2018 CoR-Lab. All rights reserved.