J.Util.Proxy.Collection.M

Companion
object
Source
Collection.scala

Def

Inherited

@targetName("stream")
override def ~: ~[A]
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
@targetName("addAll")
inline def ++=(inline v: ~[A]): J.Util.Proxy.Collection.M[A]

Alias for addAll

Alias for addAll

Calls addAll and returns container

 // Generic example
 val x =  Idx.M(1, 2, 3)

 x ++= (4 <> 6) ++= Stream(7, 8, 9)

 x.~.tp // ~~(1, 2, 3, 4, 5, 6, 7, 8, 9)
Inherited from
Add
Source
Add.scala
@targetName("add")
inline def +=(inline v: A | Opt[A]): J.Util.Proxy.Collection.M[A]

Alias for add

Alias for add

Calls add and returns container

 // Generic example
 val x =  Idx.M(1, 2, 3)

  x += 4 += 5 += 6

  x.~.tp // Prints ~(1, 2, 3, 4, 5, 6)
Inherited from
Add
Source
Add.scala
@targetName("_removeAll")
inline def --=(inline v: ~[A]): J.Util.Proxy.Collection.M[A]

Alias for removeAll

Alias for removeAll

Removes all collection elements, which are equal to those in given stream

Returns count of removed elements, which can be 0, 1, or many

Inherited from
Mutable
Source
Mutable.scala
@targetName("_remove")
inline def -=(inline v: A): J.Util.Proxy.Collection.M[A]

Alias for remove

Alias for remove

Removes all collection elements, which are equal to the given value

Returns count of removed elements, which can be 0, 1, or many

Inherited from
Mutable
Source
Mutable.scala
override def add(v: A): Unit
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
@targetName("add_Opt")
def add_?(o: Opt[A]): Unit

Optional add

Optional add

Adds element if option has value, does nothing for void option

Inherited from
Add
Source
Add.scala
override def addAll(s: ~[A]): Unit
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
override def clear: Unit
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
def isEmpty: Boolean
Inherited from
Size
Source
Size.scala
override def remove(v: A): Int
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
override def removeAll(s: ~[A]): Int
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala
def replaceAll(v: ~[A]): Unit

Replace everything

Replace everything

Discards all old elements and adds all provided elements

Inherited from
Mutable
Source
Mutable.scala
override def size: Int
Definition Classes
Inherited from
AbstractTrait
Source
Collection.scala