Module com.cryptoalgo.oursql.oursql
Package com.cryptoalgo.codable
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
Abstract class which allows classes that inherit it to be
deserialized by
Decoder
s
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 Summary
-
Method Summary
-
Constructor Details
-
Decodable
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
-