in scala.collection.jcl
trait MutableIterable

abstract trait MutableIterable [A]
extends java.lang.Object
with scala.Iterable[A]
with scala.ScalaObject
An iterable collection that supports remove operations. Useful for representing projections of mutable collections that where only the remove operation makes sense.
Author:
Sean McDirmid
Direct Known Subclasses:
Map, Map, Map, Map, Map, Map, Map, Map, Map, Map, Map, Ranged, MutableSeq, Map, Map, Map, Map, Map, Map, Map, IterableWrapper, Map, Map, Map, Map, Map, Collection, Map

Class Summary
protected class Map [B]
The default implementation of a map over mutable iterable collections.
Def Summary
def - (t: A) : MutableIterable.this.type

def -- (that: scala.Iterable[A]) : MutableIterable.this.type
Operator shortcut for removeAll.
def clear : scala.Unit
clear all elements from the collection.
abstract override def elements : scala.collection.jcl.MutableIterator[A]

def has (t: A) : scala.Boolean

def isEmpty : scala.Boolean

def pmap [B] (f: (A) => B) : scala.collection.jcl.MutableIterable[B]
Creates a non-strict map of this collection. Any removals from the returned * collection will remove from this collection, while any changes to this collection will also be * reflected in the mapped collection. * @return a non-strict map of this collection.
def remove (t: A) : scala.Boolean

def removeAll (that: scala.Iterable[A]) : scala.Boolean

def retain (p: (A) => scala.Boolean) : scala.Unit
retain only elements in the collection that predicate p is true for.
def retainAll (that: scala.Iterable[A]) : scala.Boolean
retain only elements that are also in that.
def size : scala.Int

Def inherited from scala.Iterable[A]
++ , /:, :\, addString, concat, copyToBuffer, drop, dropWhile, elements, exists, filter, find, findIndexOf, flatMap, foldLeft, foldRight, forall, foreach, indexOf, map, mkString, mkString, reduceLeft, reduceRight, sameElements, take, takeWhile, toList
Def Detail
def - (t: A): MutableIterable.this.type
Returns:
the collection that t was removed from.

def -- (that: scala.Iterable[A]): MutableIterable.this.type
Operator shortcut for removeAll.

def clear : scala.Unit
clear all elements from the collection.

abstract override def elements : scala.collection.jcl.MutableIterator[A]

def has (t: A): scala.Boolean
Returns:
true if t is in the collection.

def isEmpty : scala.Boolean
Returns:
true if the element has no elements.

def pmap [B](f: (A) => B): scala.collection.jcl.MutableIterable[B]
Creates a non-strict map of this collection. Any removals from the returned * collection will remove from this collection, while any changes to this collection will also be * reflected in the mapped collection. * @return a non-strict map of this collection.

def remove (t: A): scala.Boolean
Returns:
true if t was removed from this collection.

def removeAll (that: scala.Iterable[A]): scala.Boolean
Returns:
true if any element in that was removed from this collection.

def retain (p: (A) => scala.Boolean): scala.Unit
retain only elements in the collection that predicate p is true for.

def retainAll (that: scala.Iterable[A]): scala.Boolean
retain only elements that are also in that.

def size : scala.Int
Returns:
the current number of elements in the collection.