SingletonSerializeAsToken
Keywords: net.corda.core.serialization.SingletonSerializeAsToken class
Date: 2023-09-18

net.corda.core.serialization

## Class SingletonSerializeAsToken

- net.corda.core.serialization.SingletonSerializeAsToken

- All Implemented Interfaces:
    SerializeAsToken
  Direct Known Subclasses:
    InMemoryMessagingNetwork, MockAttachmentStorage

      public class SingletonSerializeAsToken
      implements SerializeAsToken

  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.

- - ### Constructor Detail

    - #### SingletonSerializeAsToken

          public SingletonSerializeAsToken()

      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.

  - ### Method Detail

    - #### toToken

          @NotNull
          public SingletonSerializationToken toToken(@NotNull
                                                              SerializeAsTokenContext context)