Interface InternalConverter<T>

Type Parameters:
T - the type of value to convert
All Known Implementing Classes:
CoherenceConverterAdapter, ReferenceInternalConverter, SerializingInternalConverter

public interface InternalConverter<T>
Converts values of a specified type to and from an internal representation.

InternalConverters are typically used convert cache keys and values to and from an appropriate internal representation.

The internal representation is declared as an Object as the type is typically unknown until runtime.

Since:
Coherence 12.1.3
Author:
bo 2013.11.24
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts an internal representation of a value to a value.
    toInternal(T value)
    Converts a value to an internal representation.
  • Method Details

    • toInternal

      Object toInternal(T value)
      Converts a value to an internal representation.
      Parameters:
      value - the value to convert
      Returns:
      an internal representation of the value
    • fromInternal

      T fromInternal(Object object)
      Converts an internal representation of a value to a value.
      Parameters:
      object - the internal representation of the value
      Returns:
      the value