Interface InputTypeTranslator<T,S>

Type Parameters:
T - the target type
S - the source type
All Known Subinterfaces:
Serializer<T>, TypeTranslator<S,T>
All Known Implementing Classes:
AlertSerializer, ByteArraySerializer, GenericJsonSerializer, GenericJsonToStringTranslator, StatusMessageSerializer, StringSerializer, TraceRecordSerializer

public interface InputTypeTranslator<T,S>
Defines a type translator between two given types. Translation may imply a loss or augmentation of information.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    from(T data)
    Deserializes a target value into a source value ("input from external").
  • Method Details

    • from

      S from(T data) throws IOException
      Deserializes a target value into a source value ("input from external").
      Parameters:
      data - the data to be translated back
      Returns:
      the serialized object
      Throws:
      IOException - in case that serialization fails