in scala.collection.mutable
class Set

mixin abstract class Set [ A ]
extends java.lang.Object
with Set
with Scriptable
with ScalaObject
This class represents mutable sets. Concrete set implementations just have to provide functionality for the abstract methods in scala.collection.Set as well as for add, remove, and clear.
author:
Matthias Zenger
version:
1.1, 09/05/2004

Def Summary
def ++= ( it : Iterator ) : scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
def ++= ( that : Iterable ) : scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
def += ( elem : A ) : scala.Unit
This method adds a new element to the set.
def --= ( it : Iterator ) : scala.Unit
This method removes all the elements provided by an iterator it from the set.
def --= ( that : Iterable ) : scala.Unit
This method removes all the elements provided by the the iterable object that from the set.
def -= ( elem : A ) : scala.Unit
-= can be used to remove a single element from a set.
def << ( cmd : Message ) : scala.Unit
Send a message to this scriptable object.
def clear : scala.Unit
Removes all elements from the set. After this operation is completed, the set will be empty.
override def clone : Set
Return a clone of this set.
def excl ( elems : scala.<repeated> ) : scala.Unit
excl removes many elements from the set.
def filter ( p : Function1 ) : scala.Unit
Method filter removes all elements from the set for which the predicate p yields the value false.
override def hashCode : scala.Int
The hashCode method always yields an error, since it is not safe to use mutable stacks as keys in hash tables.
def incl ( elems : scala.<repeated> ) : scala.Unit
incl can be used to add many elements to the set at the same time.
def intersect ( that : Set ) : scala.Unit
This method computes an intersection with set that. It removes all the elements that are not present in that.
def update ( elem : A , included : scala.Boolean ) : scala.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 Detail
def ++= ( it : Iterator ) : scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.

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

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

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

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

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

def << ( cmd : Message ) : scala.Unit
Send a message to this scriptable object.
param:
cmd the message to send.

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

override def clone : Set
Return a clone of this set.
return:
a set with the same elements.

def excl ( elems : scala.<repeated> ) : scala.Unit
excl removes many elements from the set.

def filter ( p : Function1 ) : scala.Unit
Method filter removes all elements from the set for which the predicate p yields the value false.

override def hashCode : scala.Int
The hashCode method always yields an error, since it is not safe to use mutable stacks as keys in hash tables.
return:
never.

def incl ( elems : scala.<repeated> ) : scala.Unit
incl can be used to add many elements to the set at the same time.

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

def update ( elem : A , included : scala.Boolean ) : scala.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