case class Store[K, V](map: Map[K, Set[V]]) extends Product with Serializable
Store represents the storage of a set of values against a given key
- K
type of the key
- V
type of the value
- map
initial store map
- Alphabetic
- By Inheritance
- Store
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Store(map: Map[K, Set[V]])
- map
initial store map
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addOrUpdate(key: K, value: V): Store[K, V]
Add or update the value in the store against the given key
Add or update the value in the store against the given key
- key
key of the store
- value
value against the key
- returns
updated store after adding/update value
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def get(key: K): Set[V]
Get the set of values against the given key.
Get the set of values against the given key. If the key is not present then empty set would be returned
- key
get the values against the given key
- returns
set of values or empty set if key is not present
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val map: Map[K, Set[V]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def remove(value: V): Store[K, V]
Remove the value from the store.
Remove the value from the store. The value could be present against multiple keys and it will be removed from all places.
- value
value to be removed from the store
- returns
updated store after removing the value
- def remove(key: K, value: V): Store[K, V]
Remove the value from the store against the given key
Remove the value from the store against the given key
- key
key of the store
- value
value to be removed against the key
- returns
updated store after removing the value
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])