scala.collection.jcl

trait IterableWrapper

[source: scala/collection/jcl/IterableWrapper.scala]

trait IterableWrapper[A]
extends MutableIterable[A]
A wrapper around a Java collection that only supports remove mutations.
Author
Sean McDirmid
Direct Known Subclasses:
CollectionWrapper, MapWrapper.ValueSet

Method Summary
override def clear : Unit
clear all elements from the collection.
override def elements : MutableIterator[A]
Creates a new iterator over all elements contained in this object.
override def isEmpty : Boolean
Is this collection empty?
override def remove (a : A) : Boolean
override def removeAll (that : Iterable[A]) : Boolean
override def retainAll (that : Iterable[A]) : Boolean
retain only elements that are also in that.
protected abstract def underlying : Collection
Methods inherited from MutableIterable
has, --, -, retain, size0, projection
Methods inherited from Collection
size (abstract), toArray, toString, stringPrefix
Methods inherited from Iterable
concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, 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
class IteratorWrapper (underlying : Iterator) extends MutableIterator[A]
Method Details
protected abstract def underlying : Collection

override def remove(a : A) : Boolean
Returns
true if t was removed from this collection.
Overrides
MutableIterable.remove

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

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

override def isEmpty : Boolean
Is this collection empty?

override def clear : Unit
clear all elements from the collection.
Overrides
MutableIterable.clear

override def elements : MutableIterator[A]
Creates a new iterator over all elements contained in this object.
Returns
the new iterator
Overrides
MutableIterable.elements