J.Util.Proxy.Collection.M.Base

trait Collection.Mutable[J.Util.Proxy.Collection.M.Base.A]
trait Able.Add[J.Util.Proxy.Collection.M.Base.A]
trait J.Util.Proxy.Collection.Base[J.Util.Proxy.Collection.M.Base.A]
trait J.Util.Proxy[Collection.Mutable[J.Util.Proxy.Collection.M.Base.A]]
trait Collection[J.Util.Proxy.Collection.M.Base.A]
trait Able.Size
trait Able.Stream[J.Util.Proxy.Collection.M.Base.A]
class java.lang.Object
trait scala.Matchable
class Any
class J.Util.Proxy.Collection.M[J.Util.Proxy.Collection.M.A]
trait J.Util.Proxy.Idx.M.Base[J.Util.Proxy.Idx.M.Base.A]
class J.Util.Proxy.Idx.M[J.Util.Proxy.Idx.M.A]
class J.Util.Proxy.Idx.OM[J.Util.Proxy.Idx.OM.A]
trait J.Util.Proxy.Idx.OM.Base[J.Util.Proxy.Idx.OM.Base.A]

Def

inline def ++=(v: Opt[A]): J.Util.Proxy.Collection.M.Base[A]

Alias for addAll

Alias for addAll

Generally Opt could be added as a stream.

This overload is sligtly more efficient, but it is also required for mapped Opt expressions, where Opt type is harder to resolve and it would not compile.

Inherited from
Add
Source
Add.scala

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.stream.tp // Stream(1, 2, 3, 4, 5, 6, 7, 8, 9)
Inherited from
Add
Source
Add.scala
inline def +=(v: A): J.Util.Proxy.Collection.M.Base[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.stream.tp // Prints Stream(1, 2, 3, 4, 5, 6)
Inherited from
Add
Source
Add.scala

Alias for removeAll

Alias for removeAll

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

Returns the collection itself

Inherited from
Mutable
Source
Mutable.scala

Alias for remove

Alias for remove

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

Returns the collection itself

Inherited from
Mutable
Source
Mutable.scala
override def add(v: A): Unit

Add

Add

Adds given value to target container

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

  x.add(4)
  x.add(5)
  x.add(6)

  x.stream.tp // Prints Stream(1, 2, 3, 4, 5, 6)
Definition Classes
Source
Collection.scala
override def addAll(s: Stream[A]): Unit

Add many

Add many

Adds given stream of elements to target container

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

  x.addAll(4 <> 6)
  x.addAll( Stream(7,8,9))

  x.stream.tp // Stream(1, 2, 3, 4, 5, 6, 7, 8, 9)
Definition Classes
Source
Collection.scala
override def clear: Unit

Remove everything

Remove everything

Discards all elements, so the colection size will become 0

Definition Classes
Source
Collection.scala
override def remove(v: A): Int

Remove element

Remove element

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

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

Definition Classes
Source
Collection.scala
override def removeAll(s: Stream[A]): Int

Remove all streamed

Remove all streamed

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

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

Definition Classes
Source
Collection.scala
def replaceWith(v: Stream[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
Base
Source
Collection.scala
override def stream: Stream[A]

Stream elements

Stream elements

Returns a stream of all collection elements

Unless specifically defined, the order must be assumed as random

  val c = Collection(1,3,5,7)
  c.stream.tp

  // Output
  Stream(1, 3, 5, 7)
Definition Classes
Inherited from
Base
Source
Collection.scala