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

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, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, sameElements, copyToBuffer, toList, mkString, addString

Methods inherited from Proxy
hashCode, equals, toString

Methods inherited from Collection
stringPrefix, equalWith

Methods inherited from Iterable
++, mkString, addString, copyToArray, isEmpty, projection, hasDefiniteSize

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

@deprecated
`override` `def` toArray[B >: A] : Array[B]

  Converts this iterable to a fresh Array with elements.

Deprecated
  This method is broken for BitSet. BitSet.toArray will be updated to new behavior in a future release.

Overrides
  Collection.toArray