Vault

final class Vault
Vault - A persistent store for values of arbitrary types.
This extends the behavior of the locker, into a Map
that maps Keys to Lockers, creating a heterogenous
store of values, accessible by keys. Such that the Vault
has no type information, all the type information is contained
in the keys.
Companion
object
class Object
trait Matchable
class Any

Value members

Methods

def empty: Vault
Empty this Vault
def lookup[A](k: Key[A]): Option[A]
Lookup the value of a key in this vault
def insert[A](k: Key[A], a: A): Vault
Insert a value for a given key. Overwrites any previous value.
def isEmpty: Boolean
Checks whether this Vault is empty
def delete[A](k: Key[A]): Vault
Delete a key from the vault
def adjust[A](k: Key[A], f: A => A): Vault
Adjust the value for a given key if it's present in the vault.
def ++(that: Vault): Vault
Merge Two Vaults. that is prioritized.