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.

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

Concrete methods

def ++(that: Vault): Vault

Merge Two Vaults. that is prioritized.

Merge Two Vaults. that is prioritized.

def adjust[A](k: Key[A], f: A => A): Vault

Adjust the value for a given key if it's present in the vault.

Adjust the value for a given key if it's present in the vault.

def delete[A](k: Key[A]): Vault

Delete a key from the vault

Delete a key from the vault

def empty: Vault

Empty this Vault

Empty this Vault

def insert[A](k: Key[A], a: A): Vault

Insert a value for a given key. Overwrites any previous value.

Insert a value for a given key. Overwrites any previous value.

def isEmpty: Boolean

Checks whether this Vault is empty

Checks whether this Vault is empty

def lookup[A](k: Key[A]): Option[A]

Lookup the value of a key in this vault

Lookup the value of a key in this vault