Char.G.Lookup

trait Lookup[A <: Any.Char, +B] extends Val.Lookup[A, B]

Char Specialized Generic Lookup Collection

To be used with Char based opaque values as lookup keys.

Source
Lookup.scala
trait Lookup[Char.G.Lookup.A, Char.G.Lookup.B]
trait Collection[Char.G.Lookup.B]
trait Able.Size
trait Able.Stream[Char.G.Lookup.B]
class java.lang.Object
trait scala.Matchable
class Any
trait Char.G.Lookup.Mutable[Char.G.Lookup.Mutable.A, Char.G.Lookup.Mutable.B]
class Char.G.Lookup.Mutable.X.Basic[Char.G.Lookup.Mutable.X.Basic.A, Char.G.Lookup.Mutable.X.Basic.B]
class Char.G.Lookup.Stable[Char.G.Lookup.Stable.A, Char.G.Lookup.Stable.B]

Def

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
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
Source
Lookup.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: Char.G.Stream[A]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Definition Classes
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 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