IMap

final class IMap[K, V] extends IMapBase[K, V, IMap[K, V]]

Intrinsic-Invariant Map.

A map with automatically-managed intrinsic-invariants. The relationship between map-key and value is guaranteed to be consistent.

Values are mapped by a subset of themselves.

Companion:
object
class IMapBase[K, V, IMap[K, V]]
class IMapBaseV[K, V, V, IMap[K, V]]
class Object
trait Matchable
class Any

Type members

Inherited types

final type M = Map[K, VO]
Inherited from:
IMapBaseV
final type This = This_
Inherited from:
IMapBaseV

Value members

Concrete methods

def empty: This
def get(k: K): Option[V]
def getAttempt(k: K): Either[String, V]
def modify(k: K, f: V => V)(implicit ev: V <:< AnyRef): This
def modifyOrPut(k: K, f: V => V, put: => V)(implicit ev: V <:< AnyRef): This
def modifyValues(f: V => V): This
def need(k: K): V

Inherited methods

@inline
final def +(v: V): This
Inherited from:
IMapBaseV
final def ++(vs: IterableOnce[V]): This
Inherited from:
IMapBaseV
final def -(k: K): This
Inherited from:
IMapBaseV
final def --(ks: IterableOnce[K]): This
Inherited from:
IMapBaseV
final def add(v: V): This
Inherited from:
IMapBaseV
final def addAll(vs: V*): This
Inherited from:
IMapBaseV
final def addAllInFoldable[F[_] : Foldable](vs: F[V]): This
Inherited from:
IMapBaseV
@elidable
final def assertValidKeys(map: M): Unit
Inherited from:
IMapBaseV
final def containsKey(k: K): Boolean
Inherited from:
IMapBaseV
final def containsValue(v: V): Boolean
Inherited from:
IMapBaseV
final override def equals(o: Any): Boolean
Definition Classes
IMapBaseV -> Any
Inherited from:
IMapBaseV
final def filter(f: (K, V) => Boolean): This
Inherited from:
IMapBase
final def filterKeys(f: K => Boolean): This
Inherited from:
IMapBase
final def filterNot(f: (K, V) => Boolean): This
Inherited from:
IMapBase
final def filterNotKeys(f: K => Boolean): This
Inherited from:
IMapBase
final def filterNotValues(f: V => Boolean): This
Inherited from:
IMapBase
final def filterValues(f: V => Boolean): This
Inherited from:
IMapBase
final override def hashCode: Int
Definition Classes
IMapBaseV -> Any
Inherited from:
IMapBaseV
final def isEmpty: Boolean
Inherited from:
IMapBase
@inline
final def iterator(): Iterator[(K, V)]
Inherited from:
IMapBaseV
@inline
final def keySet: Set[K]
Inherited from:
IMapBaseV
@inline
final def keys: Iterable[K]
Inherited from:
IMapBaseV
@inline
final def keysIterator(): Iterator[K]
Inherited from:
IMapBaseV
final def mapUnderlying(f: M => M): This
Inherited from:
IMapBaseV
@inline
final def mapValues[A](f: V => A): Map[K, A]
Inherited from:
IMapBaseV
final def nonEmpty: Boolean
Inherited from:
IMapBase
final def replaceUnderlying(map: M): This
Inherited from:
IMapBaseV
@inline
final def size: Int
Inherited from:
IMapBaseV
final override def toString: String
Definition Classes
IMapBaseV -> Any
Inherited from:
IMapBaseV
@inline
final def underlyingMap: Map[K, V]
Inherited from:
IMapBaseV
@inline
final def values: Iterable[V]
Inherited from:
IMapBaseV
@inline
final def valuesIterator(): Iterator[V]
Inherited from:
IMapBaseV