Class DefaultTwoWayKey2StringMapper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getKeyMapping​(java.lang.String key)
      Maps a String back to its original key
      java.lang.String getStringMapping​(java.lang.Object key)
      Must return an unique String for the supplied key.
      boolean isSupportedType​(java.lang.Class<?> keyType)
      Do we support this key type?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultTwoWayKey2StringMapper

        public DefaultTwoWayKey2StringMapper()
    • Method Detail

      • getStringMapping

        public java.lang.String getStringMapping​(java.lang.Object key)
        Description copied from interface: Key2StringMapper
        Must return an unique String for the supplied key.
        Specified by:
        getStringMapping in interface Key2StringMapper
        Parameters:
        key - key to map to a String
        Returns:
        String representation of the key
      • getKeyMapping

        public java.lang.Object getKeyMapping​(java.lang.String key)
        Description copied from interface: TwoWayKey2StringMapper
        Maps a String back to its original key
        Specified by:
        getKeyMapping in interface TwoWayKey2StringMapper
        Parameters:
        key - string representation of a key
        Returns:
        an object instance that is equal to the original object used to create the key mapping.
      • isSupportedType

        public boolean isSupportedType​(java.lang.Class<?> keyType)
        Description copied from interface: Key2StringMapper
        Do we support this key type?
        Specified by:
        isSupportedType in interface Key2StringMapper
        Parameters:
        keyType - type to test
        Returns:
        true if the type is supported, false otherwise.