-
- All Implemented Interfaces:
-
com.facebook.react.bridge.ReadableMap
,com.facebook.react.bridge.WritableMap
public class WritableNativeMap extends ReadableNativeMap implements WritableMap
Implementation of a write-only map stored in native memory. Use createMap if you need to stub out creating this class in a test. TODO(5815532): Check if consumed on read
-
-
Constructor Summary
Constructors Constructor Description WritableNativeMap()
-
Method Summary
Modifier and Type Method Description native void
putBoolean(@NonNull() String key, boolean value)
native void
putDouble(@NonNull() String key, double value)
native void
putInt(@NonNull() String key, int value)
native void
putNull(@NonNull() String key)
native void
putString(@NonNull() String key, @Nullable() String value)
void
putMap(@NonNull() String key, @Nullable() ReadableMap value)
void
putArray(@NonNull() String key, @Nullable() ReadableArray value)
void
merge(@NonNull() ReadableMap source)
WritableMap
copy()
-
Methods inherited from class com.facebook.react.bridge.ReadableNativeMap
equals, getArray, getBoolean, getDouble, getDynamic, getEntryIterator, getInt, getJNIPassCounter, getMap, getString, getType, hasKey, hashCode, isNull, keySetIterator, toHashMap
-
Methods inherited from class com.facebook.react.bridge.NativeMap
toString
-
Methods inherited from class com.facebook.react.bridge.ReadableMap
getMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
putBoolean
native void putBoolean(@NonNull() String key, boolean value)
-
putMap
void putMap(@NonNull() String key, @Nullable() ReadableMap value)
-
putArray
void putArray(@NonNull() String key, @Nullable() ReadableArray value)
-
merge
void merge(@NonNull() ReadableMap source)
-
copy
WritableMap copy()
-
-
-
-