Scala Library
|
|
trait
MutableIterable[A]
extends
Collection[A]Method Summary | |
def
|
- (t : A) : MutableIterable[A] |
def
|
--
(that : Iterable[A]) : MutableIterable[A]
Operator shortcut for removeAll.
|
def
|
clear
: Unit
clear all elements from the collection.
|
override abstract def
|
elements
: MutableIterator[A]
The default implementation of a map over mutable iterable collections.
|
def
|
has (t : A) : Boolean |
override def
|
projection
: Projection[A]
returns a projection that can be used to call non-strict
filter ,
map , and flatMap methods that build projections
of the collection. |
def
|
remove (t : A) : Boolean |
def
|
removeAll (that : Iterable[A]) : Boolean |
def
|
retainAll
(that : Iterable[A]) : Boolean
retain only elements that are also in that.
|
def
|
retainOnly
(p : (A) => Boolean) : Unit
retain only elements in the collection that predicate p is true for.
|
protected def
|
size0 : Int |
Methods inherited from Collection | |
size (abstract), toArray, toString, stringPrefix |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, partition, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, isEmpty, hasDefiniteSize |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
trait
|
Filter
extends Projection[A]
|
protected class
|
Map
[B](f : (A) => B) extends Projection[B]
|
Method Details |
def
--(that : Iterable[A]) : MutableIterable[A]
def
-(t : A) : MutableIterable[A]
protected
def
size0 : Int
def
clear : Unit
override
def
projection : Projection[A]
filter
,
map
, and flatMap
methods that build projections
of the collection.override abstract
def
elements : MutableIterator[A]
Scala Library
|
|