BuiltInTypeConverters.State
-
Cmn
enum BuiltInTypeConverters.State : Enum
Control flags for built in converters.
Summary
Enum Values |
|
|---|---|
DISABLED |
Room cannot use the built in converter. |
ENABLED |
Room can use the built in converter. |
INHERITED |
The value is inherited from the higher scope. |
Public functions |
||
|---|---|---|
BuiltInTypeConverters.State |
Returns the enum constant of this type with the specified name. |
Cmn
|
Array<BuiltInTypeConverters.State> |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Cmn
|
Public properties |
||
|---|---|---|
EnumEntries<BuiltInTypeConverters.State> |
Returns an immutable |
Cmn
|
Enum Values
DISABLED
val BuiltInTypeConverters.State.DISABLED: BuiltInTypeConverters.State
Room cannot use the built in converter.
ENABLED
val BuiltInTypeConverters.State.ENABLED: BuiltInTypeConverters.State
Room can use the built in converter.
INHERITED
val BuiltInTypeConverters.State.INHERITED: BuiltInTypeConverters.State
The value is inherited from the higher scope. See TypeConverters documentation to learn more about TypeConverter scoping. If this value is never set, it defaults to ENABLED.
Public functions
valueOf
fun valueOf(value: String): BuiltInTypeConverters.State
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
fun values(): Array<BuiltInTypeConverters.State>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using entries property as a more efficient alternative returning an immutable list of enum entries.
Public properties
entries
val entries: EnumEntries<BuiltInTypeConverters.State>
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.