Class CoherenceConverterAdapter<T>

  • Type Parameters:
    T - the type of value to convert
    All Implemented Interfaces:
    InternalConverter<T>

    public class CoherenceConverterAdapter<T>
    extends Object
    implements InternalConverter<T>
    An InternalConverter that uses two Coherence Converters as a means of performing conversions to and from internal representations.
    Since:
    Coherence 12.1.3
    Author:
    jf 2013.10.24
    • Constructor Detail

      • CoherenceConverterAdapter

        public CoherenceConverterAdapter​(Converter fromConverter,
                                         Converter toConverter)
        Constructs a CoherenceConverterAdapter given two Coherence Converters.
        Parameters:
        fromConverter - a Converter to convert a value from an internal representation
        toConverter - a Converter to convert a value to an internal representation
    • Method Detail

      • toInternal

        public Object toInternal​(T value)
        Description copied from interface: InternalConverter
        Converts a value to an internal representation.
        Specified by:
        toInternal in interface InternalConverter<T>
        Parameters:
        value - the value to convert
        Returns:
        an internal representation of the value
      • fromInternal

        public T fromInternal​(Object object)
        Description copied from interface: InternalConverter
        Converts an internal representation of a value to a value.
        Specified by:
        fromInternal in interface InternalConverter<T>
        Parameters:
        object - the internal representation of the value
        Returns:
        the value