Interface GrpcObjectSerializer.Serializer<A>

Type Parameters:
A - the type of object to serialize
Enclosing class:
GrpcObjectSerializer<O>

public static interface GrpcObjectSerializer.Serializer<A>
Contract towards serializing an object of type A.
  • Method Summary

    Modifier and Type
    Method
    Description
    serialize(A object, Class<T> expectedRepresentation)
    Serialize the given object into an object of the expectedRepresentation.
  • Method Details

    • serialize

      <T> SerializedObject<T> serialize(A object, Class<T> expectedRepresentation)
      Serialize the given object into an object of the expectedRepresentation.
      Type Parameters:
      T - the type of the SerializedObject to return
      Parameters:
      object - the object of type A to serialize
      expectedRepresentation - the type to serialize the given object to
      Returns:
      a SerializedObject of expectedRepresentation based on the given object