K
- type of the keyV
- type of the valuepublic class Store<K,V>
extends java.lang.Object
implements scala.Product, scala.Serializable
param: map initial store map
Constructor and Description |
---|
Store(scala.collection.immutable.Map<K,scala.collection.immutable.Set<V>> map) |
Modifier and Type | Method and Description |
---|---|
Store<K,V> |
addOrUpdate(K key,
V value)
Add or update the value in the store against the given key
|
abstract static boolean |
canEqual(java.lang.Object that) |
abstract static boolean |
equals(java.lang.Object that) |
static <K,V> Store<K,V> |
fromMap(scala.collection.immutable.Map<K,scala.collection.immutable.Set<V>> map) |
scala.collection.immutable.Set<V> |
get(K key)
Get the set of values against the given key.
|
scala.collection.immutable.Map<K,scala.collection.immutable.Set<V>> |
map() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
Store<K,V> |
remove(K key,
V value)
Remove the value from the store against the given key
|
Store<K,V> |
remove(V value)
Remove the value from the store.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static <K,V> Store<K,V> fromMap(scala.collection.immutable.Map<K,scala.collection.immutable.Set<V>> map)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public Store<K,V> addOrUpdate(K key, V value)
key
- key of the storevalue
- value against the keypublic Store<K,V> remove(K key, V value)
key
- key of the storevalue
- value to be removed against the keypublic Store<K,V> remove(V value)
value
- value to be removed from the store