scala

trait CollectionProxy

[source: scala/CollectionProxy.scala]

trait CollectionProxy[+A]
extends Collection[A] with IterableProxy[A]
This class implements a proxy for iterable objects. It forwards all calls to a different iterable object.
Author
Matthias Zenger
Martin Odersky
Version
2.0, 31/12/2006
Direct Known Subclasses:
SeqProxy, MapProxy

Method Summary
abstract def self : Collection[A]
override def size : Int
Returns the number of elements in this collection.
override def toArray [B >: A] : Array[B]
Converts this iterable to a fresh Array with elements.
Methods inherited from IterableProxy
elements, 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, projection, hasDefiniteSize
Methods inherited from Proxy
hashCode, equals, toString
Methods inherited from Collection
stringPrefix
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def self : Collection[A]
Overrides
IterableProxy.self

override def size : Int
Returns the number of elements in this collection.
Returns
number of collection elements.
Overrides
Collection.size

override def toArray[B >: A] : Array[B]
Converts this iterable to a fresh Array with elements.
Overrides
Collection.toArray