Class Decodable<T extends Enum<T>>

java.lang.Object
com.cryptoalgo.codable.Decodable<T>
Type Parameters:
T - Type of enum of codingKeys to be used during decoding
Direct Known Subclasses:
Codable

public abstract class Decodable<T extends Enum<T>> extends Object
Abstract class which allows classes that inherit it to be deserialized by Decoders

Note: For reasons best known to Java's genius developers, interfaces cannot specify mandatory constructors. It is possible in an actual compiled language known as Swift, so why not Java?

See Also:
  • Constructor Details

    • Decodable

      protected Decodable(Decoder<T> decoder) throws DecodingException
      Decoding constructor that must be implemented by subclasses to allow decoding of data to populate fields.
      Parameters:
      decoder - Instance of a decoder to be used for decoding
      Throws:
      DecodingException - If decoding failed for whatever reason
    • Decodable

      protected Decodable()
      Default no-arg constructor