EnumPersistenceConverter<T extends Enum, I> class
abstract
Converter between Enum and I
- Inheritance
-
- Object
- PersistenceConverter<
T, I> - EnumPersistenceConverter
Constructors
-
EnumPersistenceConverter(List<
T> values) -
Constructor
const
Properties
Methods
-
fromStore(
I value) → T -
Convert the value read from the store
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toStore(
T value) → I -
Convert the value written to the store
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
integer<
T extends Enum> (List< T> values) → EnumPersistenceConverter<T, int> - An int EnumPersistenceConverter
-
string<
T extends Enum> (List< T> values) → EnumPersistenceConverter<T, String> - A string EnumPersistenceConverter