Lookup.Stable

abstract class Stable[A, B] extends Lookup[A, B]

Stable is an immutable lookup collection

Source
__.scala
trait Lookup[A, B]
trait Collection[B]
trait Able.Size
trait Able.~[B]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("stream")
def ~: ~[B]

Value stream

Value stream

Returns a Stream of all values for this Lookup

Inherited from
Lookup
Source
__.scala
@scala.annotation.targetName("_join")
inline def +(inline key: A, inline v: B): this.type

Alias for join

Alias for join

Creates a new Stable with given key/value joined

Source
__.scala
@scala.annotation.targetName("_joinAll")
inline def ++(inline v: ~[(A, B)]): this.type

Alias for joinAll

Alias for joinAll

Creates a new Stable with all given key/value pairs joined

Source
__.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 get_? in most cases

Inherited from
Lookup
Source
__.scala
@scala.annotation.targetName("get_Stream")
def get_~(keys: ~[A]): ~[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
@scala.annotation.targetName("get_Opt")
def get_?(key: A): Opt[B]

Optional element by key

Optional element by key

Optionally returns element associated with the given key

Inherited from
Lookup
Source
__.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
def join(key: A, v: B): this.type

Join key/value association

Join key/value association

Creates a new Stable with given key/value joined

Source
__.scala
def joinAll(v: ~[(A, B)]): this.type

Join multiple key/value associations

Join multiple key/value associations

Creates a new Stable with all given key/value pairs joined

Source
__.scala
@scala.annotation.targetName("key_Stream")
def key_~: ~[A]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Inherited from
Lookup
Source
__.scala
@scala.annotation.targetName("pair_Stream")
def pair_~: ~[(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
override def size: Int

Element count

Element count

Retuns element count

Definition Classes
Inherited from
Collection
Source
__.scala