Interface Topica.Database.EncodeableTopic

Enclosing class:
Topica.Database

public static interface Topica.Database.EncodeableTopic
An interface allowing for custom encodeable topics.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Empty class for when an encodable is not implemented.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(byte[] data)
    Decodes the data into an encodeable topic.
    default byte[]
    Encodes the encodeable topic.
  • Method Details

    • decode

      static Topica.Database.EncodeableTopic decode(byte[] data)
      Decodes the data into an encodeable topic.
      Parameters:
      data - The data to decode.
      Returns:
      The decoded encodeable topic.
    • encode

      default byte[] encode()
      Encodes the encodeable topic.
      Returns:
      The encoded data.