-
- All Implemented Interfaces:
-
com.onesignal.common.events.IEventNotifier,kotlin.collections.Map,kotlin.collections.MutableMap
public class MapModel<V extends Object> extends Model implements Map<String, V>
A Map Model is a MutableMap that has a key of type string and a generically-specified value. It is a Model which hooks the MutableMap into the model framework and allows for change notification propagation for any adds, removes, or updates to the MutableMap.
-
-
Method Summary
Modifier and Type Method Description IntegergetSize()Set<Entry.Map<String, V>>getEntries()Set<String>getKeys()Collection<V>getValues()final StringgetId()final UnitsetId(String id)BooleangetHasSubscribers()BooleancontainsKey(String key)BooleancontainsValue(V value)BooleanisEmpty()Vget(String key)Unitclear()Vput(String key, V value)UnitputAll(Map<out String, V> from)Vremove(String key)-
Methods inherited from class com.onesignal.common.modeling.MapModel
compute, computeIfAbsent, computeIfPresent, hasProperty, initializeFromJson, initializeFromModel, merge, putIfAbsent, remove, replace, replace, replaceAll, setAnyProperty, setBigDecimalProperty, setBooleanProperty, setDoubleProperty, setEnumProperty, setFloatProperty, setIntProperty, setListProperty, setLongProperty, setMapModelProperty, setOptAnyProperty, setOptBigDecimalProperty, setOptBooleanProperty, setOptDoubleProperty, setOptEnumProperty, setOptFloatProperty, setOptIntProperty, setOptListProperty, setOptLongProperty, setOptMapModelProperty, setOptStringProperty, setStringProperty, subscribe, toJSON, unsubscribe -
Methods inherited from class kotlin.collections.MutableMap
forEach, getOrDefault -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEntries
Set<Entry.Map<String, V>> getEntries()
-
getValues
Collection<V> getValues()
-
getHasSubscribers
Boolean getHasSubscribers()
-
containsKey
Boolean containsKey(String key)
-
containsValue
Boolean containsValue(V value)
-
-
-
-