Interface KeyConverter

  • All Known Implementing Classes:
    DefaultKeyConverter

    public interface KeyConverter
    An interface that must be implemented by key converters.

    Key converters are used to convert cache entry keys to string and string representations of the keys that are used in RESTful URLs into appropriate object instance that can be used to access cache entries.

    Author:
    as 2011.06.08
    • Method Detail

      • fromString

        Object fromString​(String sKey)
        Convert a string representation of a key into its object form.
        Parameters:
        sKey - key as a string
        Returns:
        key in its object form
      • toString

        String toString​(Object oKey)
        Convert an object representation of a key into its string form.
        Parameters:
        oKey - key in its original object form
        Returns:
        string representation of a key