com.r3corda.core.serialization / SerializeAsStringToken / <init>

# <init>

`SerializeAsStringToken(key: String)`

A base class for implementing large objects / components / services that need to serialize themselves to a string token to indicate which instance the token is a serialized form of.

This class will also double check that the class is annotated for Kryo serialization. Note it does this on every instance constructed but given this is designed to represent heavyweight services or components, this should not be significant.