in scala/collection/mutable
class ObservableSet

abstract class ObservableSet[A,This<:ObservableSet[A,This]]()
extends Set[A]
with ScalaObject
with Publisher[Message[A] with Undoable ,This]

This class is typically used as a mixin. It adds a subscription mechanism to the Set class into which this abstract class is mixed in. Class ObservableSet publishes events of the type Message.
Author:
Matthias Zenger
Version:
1.0, 08/07/2003

Method Summary
override def +=(elem: A): Unit
     This method adds a new element to the set.
override def -=(elem: A): Unit
     -= can be used to remove a single element from a set.
override def clear: Unit
     Removes all elements from the set.

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

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

Methods inherited from scala/Iterable-class
/:, :\, concat, elements, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/collection/Set-class
apply, contains, equals, isEmpty, size, subsetOf, toList, toString

Methods inherited from scala/collection/mutable/Publisher-class
activateSubscription, publish, removeSubscription, removeSubscriptions, subscribe, subscribe, suspendSubscription

Methods inherited from scala/collection/mutable/Set-class
++=, ++=, --=, --=, <<, clone, excl, filter, hashCode, incl, intersect, update

Method Detail

+=

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

-=

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

clear

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