J.Object.Mutable

trait Mutable extends J.Object with Lookup.Mutable[String, Any]
trait Lookup.Mutable[String, Any]
trait J.Object
trait Able.Doc
trait Able.Tag
trait Lookup[String, Any]
trait Collection[Any]
trait Able.Size
trait Able.~[Any]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("stream")
def ~: ~[Any]

Value stream

Value stream

Returns a Stream of all values for this Lookup

Inherited from
Lookup
Source
__.scala
@scala.annotation.targetName("_putAll")
def ++=(s: ~[(String, Any)]): J.Object.Mutable

Alias for putAll

Alias for putAll

Inherited from
Mutable
Source
__.scala
@scala.annotation.targetName("_put")
def +=(v: (String, Any)): J.Object.Mutable

Alias for put

Alias for put

Inherited from
Mutable
Source
__.scala
@scala.annotation.targetName("_removeAll")
def --=(keys: ~[String]): J.Object.Mutable

Alias for removeAll

Alias for removeAll

Inherited from
Mutable
Source
__.scala
@scala.annotation.targetName("_remove")
def -=(key: String): J.Object.Mutable

Alias for remove

Alias for remove

Inherited from
Mutable
Source
__.scala
def add(v: (String, Any)): Unit
def boolean(name: String): Boolean
Inherited from
Object
Source
Object.scala
def clear: Unit

Make empty

Make empty

Discards all entries, collection size will become zero

Inherited from
Mutable
Source
__.scala
def doc: Doc
Inherited from
Object
Source
Object.scala
def double(name: String): Double
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("double_Opt")
def double_?(name: String): Double.Opt
Inherited from
Object
Source
Object.scala
def get(v: String): Any

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 get_? in most cases

Inherited from
Lookup
Source
__.scala
@scala.annotation.targetName("get_Stream")
def get_~(keys: ~[String]): ~[Any]

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
@scala.annotation.targetName("get_Opt")
def get_?(key: String): Opt[Any]

Optional element by key

Optional element by key

Optionally returns element associated with the given key

Inherited from
Lookup
Source
__.scala
def getOrPut(key: String, v: => Any): Any

Get or create key/value association

Get or create key/value association

Returns existent value assisiated with the given key.

If the association does not exist, it will be created with the given default value, and then same value will be returned.

Inherited from
Mutable
Source
__.scala
def int(name: String): Int
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("int_Opt")
def int_?(name: String): Int.Opt
Inherited from
Object
Source
Object.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
def jArray(name: String): J.Array
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("array_Opt")
def jArray_?(name: String): Opt[J.Array]
Inherited from
Object
Source
Object.scala
def jObject(name: String): J.Object
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("object_Opt")
def jObject_?(name: String): Opt[J.Object]
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("key_Stream")
def key_~: ~[String]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Inherited from
Lookup
Source
__.scala
def long(name: String): Long
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("long_Opt")
def long_?(name: String): Long.Opt
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("pair_Stream")
def pair_~: ~[(String, Any)]

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 put(name: String, a: Any): Unit
def putAll(s: ~[(String, Any)]): Unit

Create multitiple key/value associations

Create multitiple key/value associations

This operation executes put for every stream entry

Inherited from
Mutable
Source
__.scala
def remove(v: String): Opt[Any]

Remove key association

Remove key association

Removes given key and value associated with it

Optionally returns the removed value, if it was indeed removed.

Inherited from
Mutable
Source
__.scala
def removeAll(keys: ~[String]): ~[Any]

Remove milti key associations

Remove milti key associations

Removes given stream of keys and values associated with them

Returns stream of removed values

Inherited from
Mutable
Source
__.scala
override def size: Int

Element count

Element count

Retuns element count

Definition Classes
Inherited from
Collection
Source
__.scala
def string(name: String): String
Inherited from
Object
Source
Object.scala
@scala.annotation.targetName("string_Opt")
def string_?(name: String): Ref.Opt
Inherited from
Object
Source
Object.scala
override def tag: String

Make String

Make String

tag returns this instance String representation, which should be used insted of toString

Definition Classes
Object -> Doc -> Tag
Inherited from
Object
Source
Object.scala
def update(key: String, value: Any): Opt[Any]

Update key/value association

Update key/value association

Unlike put, this operation will only update existing association, and will do nothing for non-existent.

Inherited from
Mutable
Source
__.scala
def updateAll(s: ~[(String, Any)]): ~[Any]

Update multiple key/value associations

Update multiple key/value associations

This operation executes update for every stream entry

Inherited from
Mutable
Source
__.scala