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 TypeMethodDescription<T> SerializedObject<T> Serialize the givenobjectinto an object of theexpectedRepresentation.
-
Method Details
-
serialize
Serialize the givenobjectinto an object of theexpectedRepresentation.- Type Parameters:
T- the type of theSerializedObjectto return- Parameters:
object- the object of typeAto serializeexpectedRepresentation- the type to serialize the givenobjectto- Returns:
- a
SerializedObjectofexpectedRepresentationbased on the givenobject
-