Class SerializingInternalConverter<T>
- java.lang.Object
-
- com.tangosol.coherence.jcache.common.SerializingInternalConverter<T>
-
- Type Parameters:
T
- the type of value to convert
- All Implemented Interfaces:
InternalConverter<T>
public class SerializingInternalConverter<T> extends Object implements InternalConverter<T>
AnInternalConverter
that converts values to and from their Coherence-based serializedBinary
representation.- Since:
- Coherence 12.1.3
- Author:
- jf 2013.10.24
-
-
Constructor Summary
Constructors Constructor Description SerializingInternalConverter(Serializer serializer)
Constructs aSerializingInternalConverter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
fromInternal(Object object)
Converts an internal representation of a value to a value.Object
toInternal(T value)
Converts a value to an internal representation.
-
-
-
Constructor Detail
-
SerializingInternalConverter
public SerializingInternalConverter(Serializer serializer)
Constructs aSerializingInternalConverter
.- Parameters:
serializer
- theSerializer
to use for conversion
-
-
Method Detail
-
toInternal
public Object toInternal(T value)
Description copied from interface:InternalConverter
Converts a value to an internal representation.- Specified by:
toInternal
in interfaceInternalConverter<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 interfaceInternalConverter<T>
- Parameters:
object
- the internal representation of the value- Returns:
- the value
-
-