Module com.cryptoalgo.oursql.oursql
Package com.cryptoalgo.codable
Interface KeyedEncodingContainer<T extends Enum<T>>
- Type Parameters:
T
- Type of CodingKeys used for encoding
- All Known Implementing Classes:
PreferencesEncoder
public interface KeyedEncodingContainer<T extends Enum<T>>
A container for encoding keyed values.
-
Method Details
-
encode
Encode anInteger
value into a specified key- Parameters:
value
- Value to encodeforKey
- Key to encode value into- Throws:
EncodingException
- If encoding of this key failed
-
encode
Encode aBoolean
value into a specified key- Parameters:
value
- Value to encodeforKey
- Key to encode value into- Throws:
EncodingException
- If encoding of this key failed
-
encode
Encode aString
value into a specified key- Parameters:
value
- Value to encodeforKey
- Key to encode value into- Throws:
EncodingException
- If encoding of this key failed
-