Class Codable<T extends Enum<T>>

java.lang.Object
com.cryptoalgo.codable.Decodable<T>
com.cryptoalgo.codable.Codable<T>
All Implemented Interfaces:
Encodable<T>
Direct Known Subclasses:
Cluster

public abstract class Codable<T extends Enum<T>> extends Decodable<T> implements Encodable<T>
Convenience abstract class that can be inherited by classes which conform to both Encodable and Decodable

Important: Decoding constructor must be implemented for decoding to populate fields, see Decodable(Decoder)

  • Constructor Details

    • Codable

      protected Codable(Decoder<T> decoder) throws DecodingException
      Decoding constructor, may be called via reflection by Decoders.
      Parameters:
      decoder - Instance of Decoder to be used for decoding
      Throws:
      DecodingException - If decoding fails for whatever reason
    • Codable

      protected Codable()
      Protected no-arg constructor to force inheriting classes to implement their own constructor.