scala.collection.generic

trait Shrinkable

[source: scala/collection/generic/Shrinkable.scala]

trait Shrinkable[-A]
extends AnyRef
This class represents collections that can be reduced using a -= operator.
Author
Martin Odersky
Owner
Martin Odersky
Version
2.8
Since
2.8
Direct Known Subclasses:
BufferLike, MapLike, SetLike

Method Summary
def --= (iter : Traversable[A]) : Shrinkable[A]
Removes a number of elements provided by an iterable object from this collection.
def --= (iter : Iterator[A]) : Shrinkable[A]
Removes a number of elements provided by an iterator from this collection.
abstract def -= (elem : A) : Shrinkable[A]
Removes a single element from this collection.
def -= (elem1 : A, elem2 : A, elems : A*) : Shrinkable[A]
Removes two or more elements from this collection.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def -=(elem : A) : Shrinkable[A]
Removes a single element from this collection.
Parameters
elem - the element to remove.

def -=(elem1 : A, elem2 : A, elems : A*) : Shrinkable[A]
Removes two or more elements from this collection.
Parameters
elem1 - the first element to remove.
elem2 - the second element to remove.
elems - the remaining elements to remove.

def --=(iter : Iterator[A]) : Shrinkable[A]
Removes a number of elements provided by an iterator from this collection.
Parameters
iter - the iterator.

def --=(iter : Traversable[A]) : Shrinkable[A]
Removes a number of elements provided by an iterable object from this collection.
Parameters
iter - the iterable object.