SerializableType
open class SerializableType<D : Serializable!> : NavType<D>
SerializableType is used for Serializable NavArgument
s. For handling Enums you must use EnumType
instead.
Null values are supported. Default values in Navigation XML files are not supported.
Summary
Public constructors
|
Constructs a NavType that supports a given Serializable type.
|
Inherited properties
|
From class NavType
NavType<BooleanArray!> |
BoolArrayType
NavType for storing boolean arrays, corresponding with the "boolean[]" type in a Navigation XML file.
Null values are supported. Default values in Navigation XML files are not supported.
|
NavType<Boolean!> |
BoolType
NavType for storing boolean values, corresponding with the "boolean" type in a Navigation XML file.
Null values are not supported.
|
NavType<FloatArray!> |
FloatArrayType
NavType for storing float arrays, corresponding with the "float[]" type in a Navigation XML file.
Null values are supported. Default values in Navigation XML files are not supported.
|
NavType<Float!> |
FloatType
NavType for storing float values, corresponding with the "float" type in a Navigation XML file.
Null values are not supported.
|
NavType<IntArray!> |
IntArrayType
NavType for storing integer arrays, corresponding with the "integer[]" type in a Navigation XML file.
Null values are supported. Default values in Navigation XML files are not supported.
|
NavType<Int!> |
IntType
NavType for storing integer values, corresponding with the "integer" type in a Navigation XML file.
Null values are not supported.
|
NavType<LongArray!> |
LongArrayType
NavType for storing long arrays, corresponding with the "long[]" type in a Navigation XML file.
Null values are supported. Default values in Navigation XML files are not supported.
|
NavType<Long!> |
LongType
NavType for storing long values, corresponding with the "long" type in a Navigation XML file.
Null values are not supported. Default values for this type in Navigation XML files must always end with an 'L' suffix, e.g. `app:defaultValue="123L"`.
|
NavType<Int!> |
ReferenceType
NavType for storing integer values representing resource ids, corresponding with the "reference" type in a Navigation XML file.
Null values are not supported.
|
NavType<Array<String!>!> |
StringArrayType
NavType for storing String arrays, corresponding with the "string[]" type in a Navigation XML file.
Null values are supported. Default values in Navigation XML files are not supported.
|
NavType<String!> |
StringType
NavType for storing String values, corresponding with the "string" type in a Navigation XML file.
Null values are supported.
|
|
Public constructors
<init>
SerializableType(@NonNull type: Class<D>)
Constructs a NavType that supports a given Serializable type.
Parameters |
type |
Class<D>: class that is a subtype of Serializable |
Public methods
get
@Nullable open fun get(@NonNull bundle: Bundle, @NonNull key: String): D?
getName
@NonNull open fun getName(): String
hashCode
open fun hashCode(): Int
parseValue
@NonNull open fun parseValue(@NonNull value: String): D
put
open fun put(@NonNull bundle: Bundle, @NonNull key: String, @Nullable value: D?): Unit