Lookup.Mutable.X.Basic

class Basic[A, B](val real: scala.collection.mutable.HashMap[A, B]) extends Lookup.M.X.Abstract[A, B]
Source
X.scala
class Lookup.Mutable.X.Abstract[Lookup.Mutable.X.Basic.A, Lookup.Mutable.X.Basic.B]
trait Lookup.Mutable[Lookup.Mutable.X.Basic.A, Lookup.Mutable.X.Basic.B]
trait Lookup[Lookup.Mutable.X.Basic.A, Lookup.Mutable.X.Basic.B]
trait Collection[Lookup.Mutable.X.Basic.B]
trait Able.Size
trait Able.Stream[Lookup.Mutable.X.Basic.B]
class java.lang.Object
trait scala.Matchable
class Any

Def

Constructor

def this()
Source
X.scala

Body

inline def ++=(s: Stream[(A, B)]): Lookup.M.X.Basic[A, B]

Alias for putAll

Alias for putAll

Inherited from
Mutable
Source
__.scala
inline def +=(v: (A, B)): Lookup.M.X.Basic[A, B]

Alias for put

Alias for put

Inherited from
Mutable
Source
__.scala
inline def --=(keys: Stream[A]): Lookup.M.X.Basic[A, B]

Alias for removeAll

Alias for removeAll

Inherited from
Mutable
Source
__.scala
inline def -=(key: A): Lookup.M.X.Basic[A, B]

Alias for remove

Alias for remove

Inherited from
Mutable
Source
__.scala
def clear: Unit
Source
X.scala
def get(v: A): B

Element by key

Element by key

Returns element associated with the given key

Note. This operation will fail, if value is not found. Thus, use safer getOpt in most cases

Inherited from
Lookup
Source
__.scala
def getOpt(key: A): Opt[B]
Source
X.scala
def getOrPut(key: A, v: => B): B

Get or create key/value association

Get or create key/value association

Returns existent value assisiated with the given key.

If the association does not exist, it will be created with the given default value, and then same value will be returned.

Inherited from
Mutable
Source
__.scala
def getStream(keys: Stream[A]): Stream[B]

Multi key lookup

Multi key lookup

Returns a stream of values for given stream of keys.

Note: There may be less values, than keys. Keys with no assosiated values are ignored.

Inherited from
Lookup
Source
__.scala
def keyStream: Stream[A]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Inherited from
Lookup
Source
__.scala
def pairStream: Stream[(A, B)]
Source
X.scala
def put(key: A, value: B): Unit
Source
X.scala
def putAll(s: Stream[(A, B)]): Unit

Create multitiple key/value associations

Create multitiple key/value associations

This operation executes put for every stream entry

Inherited from
Mutable
Source
__.scala
def remove(key: A): Opt[B]
Source
X.scala
def removeAll(keys: Stream[A]): Stream[B]

Remove milti key associations

Remove milti key associations

Removes given stream of keys and values associated with them

Returns stream of removed values

Inherited from
Mutable
Source
__.scala
def size: Int
Source
X.scala
def stream: Stream[B]

Value stream

Value stream

Returns a Stream of all values for this Lookup

Inherited from
Lookup
Source
__.scala
def update(key: A, value: B): Opt[B]

Update key/value association

Update key/value association

Unlike put, this operation will only update existing association, and will do nothing for non-existent.

Inherited from
Mutable
Source
__.scala
def updateAll(s: Stream[(A, B)]): Stream[B]

Update multiple key/value associations

Update multiple key/value associations

This operation executes update for every stream entry

Inherited from
Mutable
Source
__.scala