V
- the deserialized value typeW
- the serialized value type@ExtensionPoint public interface ValueConverter<V,W>
Converts between two representations of the same value.
The conversion takes place between an 'external' value used by the application and a 'serialized' value that will normally be used for persistent storage.
As only a limited range of types can be persisted in a work object, the use of a ValueConverter
allows the application to work directly with type-safe application value classes.
Modifier and Type | Method and Description |
---|---|
V |
deserialize(W input)
Deserializes the given value.
|
com.google.common.reflect.TypeToken<W> |
getSerializedValueType()
Returns a type token for the serialized value type.
|
W |
serialize(V input)
Serializes the given value.
|
W serialize(V input)
Serializes the given value.
input
- the value to serializeV deserialize(W input)
Deserializes the given value.
input
- the value to deserializecom.google.common.reflect.TypeToken<W> getSerializedValueType()
Returns a type token for the serialized value type.
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.