Class PreferencesDecoder<T extends Enum<T>>

java.lang.Object
com.cryptoalgo.codable.preferencesCoder.PreferencesDecoder<T>
Type Parameters:
T - Type of enum of codingKeys to be used during decoding
All Implemented Interfaces:
Decoder<T>, KeyedDecodingContainer<T>

public final class PreferencesDecoder<T extends Enum<T>> extends Object implements Decoder<T>, KeyedDecodingContainer<T>
An implementation of a Decoder that decodes data stored in Java's Preferences

Note: Decoding methods returns Optional.empty() if the value in the provided key exists but cannot be cased to the requested type. This behaviour might be modified in the future to throw DecodingException instead.

See Also: