Interface Encodable<T extends Enum<T>>

Type Parameters:
T - Type of enum of codingKeys to be used during encoding
All Known Implementing Classes:
Cluster, Codable

public interface Encodable<T extends Enum<T>>
Interface which allows classes that implement it to be serialised by Encoders
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(Encoder<T> encoder)
    Encodes the fields in this class with an encoder.
  • Method Details

    • encode

      void encode(Encoder<T> encoder) throws EncodingException
      Encodes the fields in this class with an encoder.
      Parameters:
      encoder - Encoder to be used for encoding
      Throws:
      EncodingException - If the encoder threw an exception