public class DefaultTwoWayKey2StringMapper extends Object implements TwoWayKey2StringMapper
TwoWayKey2StringMapper
that knows how to handle all primitive
wrapper keys and Strings.Constructor and Description |
---|
DefaultTwoWayKey2StringMapper() |
Modifier and Type | Method and Description |
---|---|
Object |
getKeyMapping(String key)
Maps a String back to its original key
|
String |
getStringMapping(Object key)
Must return an unique String for the supplied key.
|
boolean |
isSupportedType(Class<?> keyType)
Do we support this key type?
|
public String getStringMapping(Object key)
Key2StringMapper
getStringMapping
in interface Key2StringMapper
key
- key to map to a Stringpublic Object getKeyMapping(String key)
TwoWayKey2StringMapper
getKeyMapping
in interface TwoWayKey2StringMapper
key
- string representation of a keypublic boolean isSupportedType(Class<?> keyType)
Key2StringMapper
isSupportedType
in interface Key2StringMapper
keyType
- type to testCopyright © 2012 JBoss by Red Hat. All Rights Reserved.