java method according to value type If there's already a value associated with this key, the new value overwrites it
To retrieve entries, you'll have to call the type corresponding method conforming to these rules:
| Nit type | corresponding getter |
|:----------------------|:--------------------------------|
| Int
| long
|
| Float
| double
|
| Bool
| bool
|
| Char
| char
|
| String
| string
|
| Serializable
| deserialize
|
| Array[Int]
| array_of_long
|
| Array[Float]
| array_of_double
|
| Array[Bool]
| array_of_bool
|
| Array[Char]
| array_of_char
|
| Array[String]
| array_of_string
|
| Array[Serializable]
| deserialize_array
|
# Add key-value information by dynamically choosing the appropriate
# java method according to value type
# If there's already a value associated with this key, the new value
# overwrites it
#
# To retrieve entries, you'll have to call the type corresponding method
# conforming to these rules:
#
# | Nit type | corresponding getter |
# |:----------------------|:--------------------------------|
# | `Int` | `long` |
# | `Float` | `double` |
# | `Bool` | `bool` |
# | `Char` | `char` |
# | `String` | `string` |
# | `Serializable` | `deserialize` |
# | `Array[Int]` | `array_of_long` |
# | `Array[Float]` | `array_of_double` |
# | `Array[Bool]` | `array_of_bool` |
# | `Array[Char]` | `array_of_char` |
# | `Array[String]` | `array_of_string` |
# | `Array[Serializable]` | `deserialize_array` |
fun []=(key: String, value: Serializable): Bundle
do
sys.jni_env.push_local_frame(1)
value.add_to_bundle(self.native_bundle, key.to_java_string)
sys.jni_env.pop_local_frame
return self
end
lib/android/bundle/bundle.nit:474,2--502,4