t

Any.Collection.M

trait M[A] extends Any.Collection[A] with Any.Able.Add[A] with Any.Able.Remove[A]

Mutable Collection

Ordering
  1. Alphabetic
Inherited
  1. M
  2. Any.Able.Remove
  3. Any.Able.Add
  4. Any.Collection
  5. scala.AnyRef
  6. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. abstract def add(v: A): Unit

    Add

    Add

    Adds given v to target container

    // Generic example
    val x = Idx.M.make(1, 2, 3)
    
     x add 4
     x add 5
     x add 6
    
     x.all.lp // Prints: ~(1, 2, 3, 4, 5, 6)
    Definition Classes
    Add
  2. def addAll(stream: ~[A]): Unit

    Add Stream

    Add Stream

    Adds given stream elements to target container

    // Generic example
    val x = Idx.M.make(1, 2, 3)
    
     x addAll 4 <> 6
     x addAll 7 ~+ 8 + 9
    
     x.all.lp // ~(1, 2, 3, 4, 5, 6, 7, 8, 9)
    Definition Classes
    Add
  3. abstract def all: ~[A]

    Returns a Stream of all elements

    Returns a Stream of all elements

    Unless specifically defined, the order must be assumed as random.

    val coll = Any.Collection.make(1,3,5,7)
    coll.all.lp
    
    // Output
    ~(1, 3, 5, 7)
    Definition Classes
    _Trait
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. abstract def clear: Unit

    Remove everything

    Remove everything

    Clears container of all elements

    Definition Classes
    Remove
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. abstract def remove(v: A): Unit

    Remove

    Remove

    Removes all elements equal to provided

    // Generic example
    val x = Idx.M.make(1, 2, 3, 4, 5)
    
    x.remove(2)
    x.remove(3)
    x.remove(4)
    
    x.all.lp // Prints: ~(1, 5)
    Definition Classes
    Remove
  16. def removeAll(s: ~[A]): Unit

    Remove all

    Remove all

    Removes all elements equal to any in provided stream

    // Generic example
    val x = Idx.M.make(1, 2, 3, 4, 5)
    
    x.removeAll(2 <> 4)
    x.removeAll(2 ~+ 3 + 4)
    
    x.all.lp // Prints: ~(1, 5)
    Definition Classes
    Remove
  17. abstract def size: Int

    Number of elements

    Number of elements

    Readily available, not calculated element count

    Idx.*(1,3,5,7).size.lp  // Prints: 4
    Definition Classes
    _Trait
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +=(v: A): M.this.type

    Add operator

    Add operator

    Calls add and returns container

    // Generic example
    val x = Idx.M.make(1, 2, 3)
    
     x += 4 += 5 += 6
    
     x.all.lp // Prints: ~(1, 2, 3, 4, 5, 6)
    Definition Classes
    Add
  4. def +~=(stream: ~[A]): M.this.type

    Add Stream operator

    Add Stream operator

    Calls addAll and returns container

    // Generic example
    val x = Idx.M.make(1, 2, 3)
    
    x +~= (4 <> 6) +~= (7 ~+ 8 + 9)
    
    x.all.lp // ~(1, 2, 3, 4, 5, 6, 7, 8, 9)
    Definition Classes
    Add
  5. def -=(element: A): M.this.type

    Remove operator

    Remove operator

    Removes all elements equal to provided

    // Generic example
    val x = Idx.M.make(1, 2, 3, 4, 5)
    
    x =- 2 =- 3 =- 4
    
    x.all.lp // Prints: ~(1, 5)
    Definition Classes
    Remove
  6. def -~=(stream: ~[A]): M.this.type

    Remove all operator

    Remove all operator

    Removes all elements equal to any in provided stream

    // Generic example
    val x = Idx.M.make(1, 2, 3, 4, 5)
    
    x =-~ (2 <> 4) =-~ (2 ~+ 3 + 4)
    
    x.all.lp // Prints: ~(1, 5)
    Definition Classes
    Remove
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any