in scala/collection/mutable
class SetProxy

class SetProxy[A](set: Set[A])
extends Set[A]
with ScalaObject
with SetProxy[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

Method Summary
override def ++=(that: Iterable[A]): Unit
     This method will add all the elements provided by an iterator of the iterable object that to the set.
override def ++=(it: Iterator[A]): Unit
     This method will add all the elements provided by an iterator of the iterable object that to the set.
  def +=(elem: A): Unit
     This method adds a new element to the set.
override def --=(that: Iterable[A]): Unit
     This method removes all the elements provided by the the iterable object that from the set.
override def --=(it: Iterator[A]): Unit
     This method removes all the elements provided by an iterator it from the set.
  def -=(elem: A): Unit
     -= can be used to remove a single element from a set.
override def <<(cmd: Message[A]): Unit
     Send a message to this scriptable object.
  def clear: Unit
     Removes all elements from the set.
override def clone(): Set[A]
     Return a clone of this set.
override def excl(elems: A*): Unit
     excl removes many elements from the set.
override def filter(p: (A) => Boolean): Unit
     Method filter removes all elements from the set for which the predicate p yields the value false.
override def incl(elems: A*): Unit
     incl can be used to add many elements to the set at the same time.
override def intersect(that: Set[A]): Unit
     This method computes an intersection with set that.
override def update(elem: A, included: Boolean): Unit
     This method allows one to add or remove an element elem from this set depending on the value of parameter included.

Methods inherited from java/lang/Object-class
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/IterableProxy-class
/:, :\, elements, find, foldLeft, foldRight, forall, sameElements

Methods inherited from scala/Proxy-class
equals, hashCode, toString

Methods inherited from scala/collection/Set-class
apply

Methods inherited from scala/collection/SetProxy-class
contains, exists, foreach, isEmpty, size, subsetOf, toList

Method Detail

update

  override def update(elem: A, included: Boolean): Unit
This method allows one to add or remove an element elem from this set depending on the value of parameter included. Typically, one would use the following syntax:
set(elem) = true

+=

  def +=(elem: A): Unit
This method adds a new element to the set.

++=

  override def ++=(that: Iterable[A]): Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.

++=

  override def ++=(it: Iterator[A]): Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.

incl

  override def incl(elems: A*): Unit
incl can be used to add many elements to the set at the same time.

-=

  def -=(elem: A): Unit
-= can be used to remove a single element from a set.

--=

  override def --=(that: Iterable[A]): Unit
This method removes all the elements provided by the the iterable object that from the set.

--=

  override def --=(it: Iterator[A]): Unit
This method removes all the elements provided by an iterator it from the set.

excl

  override def excl(elems: A*): Unit
excl removes many elements from the set.

intersect

  override def intersect(that: Set[A]): Unit
This method computes an intersection with set that. It removes all the elements that are not present in that.

clear

  def clear: Unit
Removes all elements from the set. After this operation is completed, the set will be empty.

filter

  override def filter(p: (A) => Boolean): Unit
Method filter removes all elements from the set for which the predicate p yields the value false.

<<

  override def <<(cmd: Message[A]): Unit
Send a message to this scriptable object.
Parameters:
cmd - the message to send.

clone

  override def clone(): Set[A]
Return a clone of this set.
Returns:
a set with the same elements.