Modifiable

trait Modifiable[T <: Txn[T], K, Repr <: ([~ <: Txn[~]] =>> Form[~])] extends MapObj[T, K, Repr]
Companion
object
trait MapObj[T, K, Repr]
trait Obj[T]
trait Mutable[T]
trait Identified[T]
trait Elem[T]
trait Publisher[T, Update[T, K, Repr]]
trait Writable
trait Form[T]
trait MapObjLike[T, K, Repr[T]]
trait Disposable[T]
class Object
trait Matchable
class Any

Type members

Inherited types

type V = Repr[T]
Inherited from
MapObj

Value members

Abstract methods

def +=(kv: (K, V))(implicit tx: T): Modifiable[T, K, Repr]
def -=(key: K)(implicit tx: T): Modifiable[T, K, Repr]
def put(key: K, value: V)(implicit tx: T): Option[V]

Inserts a new entry into the map.

Inserts a new entry into the map.

Value Params
key

the key to insert

value

the value to store for the given key

Returns

the previous value stored at the key, or None if the key was not in the map

def remove(key: K)(implicit tx: T): Option[V]

Removes an entry from the map.

Removes an entry from the map.

Value Params
key

the key to remove

Returns

the removed value which had been stored at the key, or None if the key was not in the map

Inherited methods

def $[R <: ([~ <: Txn[LazyRef(...)]] =>> Repr[~])](key: K)(implicit tx: T, ct: ClassTag[R[T]]): Option[R[T]]
Inherited from
MapObj
final
def attr(implicit tx: T): AttrMap[T]
Inherited from
Obj
def changed: EventLike[T, Update[T, K, Repr]]
Inherited from
Publisher
def contains(key: K)(implicit tx: T): Boolean

Searches for the map for a given key.

Searches for the map for a given key.

Value Params
key

the key to search for

Returns

true if the key is in the map, false otherwise

Inherited from
MapObjLike
def dispose()(implicit tx: T): Unit
Inherited from
Disposable
override
def equals(that: Any): Boolean
Definition Classes
Identified -> Any
Inherited from
Identified
def get(key: K)(implicit tx: T): Option[Repr[T]]

Queries the value for a given key.

Queries the value for a given key.

Value Params
key

the key to look for

Returns

the value if it was found at the key, otherwise None

Inherited from
MapObjLike
override
def hashCode: Int
Definition Classes
Identified -> Any
Inherited from
Identified
def id: Ident[T]
Inherited from
Identified
def isEmpty(implicit tx: T): Boolean
Inherited from
MapObjLike
def iterator(implicit tx: T): Iterator[(K, V)]
Inherited from
MapObj
def keysIterator(implicit tx: T): Iterator[K]
Inherited from
MapObj
def modifiableOption: Option[Modifiable[T, K, Repr]]
Inherited from
MapObj
def nonEmpty(implicit tx: T): Boolean
Inherited from
MapObjLike
override
def toString: String
Definition Classes
Obj -> Any
Inherited from
Obj
override
def tpe: Type
Definition Classes
Inherited from
Obj
def valuesIterator(implicit tx: T): Iterator[V]
Inherited from
MapObj
def write(out: DataOutput): Unit
Inherited from
Writable