Int.G.Lookup.Mutable

trait Mutable[A <: Any.Int, B] extends Int.G.Lookup[A, B] with Lookup.M[A, B]
trait Lookup.Mutable[Int.G.Lookup.Mutable.A, Int.G.Lookup.Mutable.B]
trait Int.G.Lookup[Int.G.Lookup.Mutable.A, Int.G.Lookup.Mutable.B]
trait Lookup[Int.G.Lookup.Mutable.A, Int.G.Lookup.Mutable.B]
trait Collection[Int.G.Lookup.Mutable.B]
trait Able.Size
trait Able.Stream[Int.G.Lookup.Mutable.B]
class java.lang.Object
trait scala.Matchable
class Any
class Int.G.Lookup.Mutable.X.Basic[Int.G.Lookup.Mutable.X.Basic.A, Int.G.Lookup.Mutable.X.Basic.B]

Def

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

Alias for putAll

Alias for putAll

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

Alias for put

Alias for put

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

Alias for removeAll

Alias for removeAll

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

Alias for remove

Alias for remove

Inherited from
Mutable
Source
__.scala
def clear: Unit

Make empty

Make empty

Discards all entries, collection size will become zero

Inherited from
Mutable
Source
__.scala
override 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

Definition Classes
Inherited from
Lookup
Source
Lookup.scala
override def getOpt(key: A): Opt[B]

Optional element by key

Optional element by key

Optionally returns element associated with the given key

Definition Classes
Inherited from
Lookup
Source
Lookup.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
override def keyStream: Int.G.Stream[A]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Definition Classes
Inherited from
Lookup
Source
Lookup.scala
def pairStream: Stream[(A, B)]

Key/value pair stream

Key/value pair stream

Returns a Stream of all key/value pairs for this Lookup

Inherited from
Lookup
Source
__.scala
def put(key: A, value: B): Unit
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]
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
Inherited from
Collection
Source
__.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