scala.collection.mutable

trait SetProxy

[source: scala/collection/mutable/SetProxy.scala]

trait SetProxy[A]
extends Set[A] with SetProxyLike[A, Set[A]]
This is a simple wrapper class for scala.collection.mutable.Set. It is most useful for assembling customized set abstractions dynamically using object composition and forwarding.
Author
Matthias Zenger
Version
1.1, 09/05/2004
Since
1
Method Summary
override def + (elem : A) : SetProxy[A]
Adds a single element to this collection and returns the collection itself.
def += (elem : A) : SetProxy[A]
Adds a new element to the set.
override def - (elem : A) : SetProxy[A]
Removes a single element from this collection and returns the collection itself.
def -= (elem : A) : SetProxy[A]
Removes a single element from a set.
override def empty : SetProxy[A]
override def repr : SetProxy[A]
Methods inherited from SetProxyLike
contains, isEmpty, apply, intersect, &, union, |, diff, &~, subsetOf
Methods inherited from IterableProxyLike
iterator, foreach, foldRight, reduceRight, toIterable, zip, zipAll, zipWithIndex, head, takeRight, dropRight, sameElements, toStream, view, view
Methods inherited from TraversableProxyLike
self (abstract), nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix
Methods inherited from Proxy
hashCode, equals, toString
Methods inherited from Set
companion
Methods inherited from SetLike
newBuilder, add, remove, update, retain, clear, clone, result, +, ++, ++, -, --, --, <<
Methods inherited from Shrinkable
-=, --=, --=
Methods inherited from Builder
sizeHint, mapResult
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from SetLike
**
Methods inherited from Function1
compose, andThen
Methods inherited from IterableLike
thisCollection, toCollection, elements, canEqual, first, firstOption, projection
Methods inherited from GenericTraversableTemplate
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
partialMap, sum, product, min, max, toIndexedSeq, withFilter
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def repr : SetProxy[A]

override def empty : SetProxy[A]

override def +(elem : A) : SetProxy[A]
Adds a single element to this collection and returns the collection itself.
Parameters
elem - the element to add.

override def -(elem : A) : SetProxy[A]
Removes a single element from this collection and returns the collection itself.
Parameters
elem - the element to remove.

def +=(elem : A) : SetProxy[A]
Adds a new element to the set.
Parameters
elem - the element to be added

def -=(elem : A) : SetProxy[A]
Removes a single element from a set.
Parameters
elem - The element to be removed.