public class WrappedByteArrayOrPrimitiveMapper extends DefaultTwoWayKey2StringMapper implements MarshallingTwoWayKey2StringMapper
TwoWayKey2StringMapper that supports both primitives
and WrappedByteArrays. It extends DefaultTwoWayKey2StringMapper
to achieve this.| Constructor and Description |
|---|
WrappedByteArrayOrPrimitiveMapper() |
| 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?
|
void |
setMarshaller(StreamingMarshaller marshaller) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMarshallerpublic void setMarshaller(StreamingMarshaller marshaller)
setMarshaller in interface MarshallingTwoWayKey2StringMapperpublic String getStringMapping(Object key)
Key2StringMappergetStringMapping in interface Key2StringMappergetStringMapping in class DefaultTwoWayKey2StringMapperkey - key to map to a Stringpublic Object getKeyMapping(String key)
TwoWayKey2StringMappergetKeyMapping in interface TwoWayKey2StringMappergetKeyMapping in class DefaultTwoWayKey2StringMapperkey - string representation of a keypublic boolean isSupportedType(Class<?> keyType)
Key2StringMapperisSupportedType in interface Key2StringMapperisSupportedType in class DefaultTwoWayKey2StringMapperkeyType - type to testCopyright © 2022 JBoss by Red Hat. All rights reserved.