in scala.collection.mutable
trait Set

[scala.cloneable]
`abstract trait` Set [A]
  `extends` java.lang.Object
  `with` scala.collection.Set[A]
  `with` scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]]
  `with` scala.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

Direct Known Subclasses:
  SynchronizedSet, SetProxy, ObservableSet, LinkedHashSet, JavaSetAdaptor, ImmutableSetAdaptor, HashSet, BitSet

Def Summary
| `def` ++= (it: scala.Iterator[A]) : scala.Unit This method will add all the elements provided by an iterator of the iterable object `that` to the set.
| `def` ++= (that: scala.Iterable[A]) : scala.Unit This method will add all the elements provided by an iterator of the iterable object `that` to the set.
`abstract` | `def` += (elem: A) : scala.Unit This method adds a new element to the set.
| `def` --= (it: scala.Iterator[A]) : scala.Unit This method removes all the elements provided by an iterator `it` from the set.
| `def` --= (that: scala.Iterable[A]) : scala.Unit This method removes all the elements provided by the the iterable object `that` from the set.
`abstract` | `def` -= (elem: A) : scala.Unit `-=` can be used to remove a single element from a set.
| `def` << (cmd: scala.collection.mutable.Message[A]) : scala.Unit Send a message to this scriptable object.
`abstract` | `def` clear : scala.Unit Removes all elements from the set. After this operation is completed, the set will be empty.
`override` | `def` clone : scala.collection.mutable.Set[A] Return a clone of this set.
| `def` excl (elems: A*) : scala.Unit `excl` removes many elements from the set.
| `def` filter (p: scala.Function1[A, scala.Boolean]) : 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: A*) : scala.Unit `incl` can be used to add many elements to the set at the same time.
| `def` intersect (that: scala.collection.mutable.Set[A]) : 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: scala.Iterator[A]): scala.Unit

  This method will add all the elements provided by an iterator of the iterable object `that` to the set.

Parameters:
  `it -` ...

`def` ++= (that: scala.Iterable[A]): scala.Unit

  This method will add all the elements provided by an iterator of the iterable object `that` to the set.

Parameters:
  `that -` ...

`abstract def` += (elem: A): scala.Unit

  This method adds a new element to the set.

Parameters:
  `elem -` ...

`def` --= (it: scala.Iterator[A]): scala.Unit

  This method removes all the elements provided by an iterator `it` from the set.

`def` --= (that: scala.Iterable[A]): scala.Unit

  This method removes all the elements provided by the the iterable object `that` from the set.

`abstract def` -= (elem: A): scala.Unit

  `-=` can be used to remove a single element from a set.

`def` << (cmd: scala.collection.mutable.Message[A]): scala.Unit

  Send a message to this scriptable object.

Parameters:
  `cmd -` the message to send.
Throws:
  `UnsupportedOperationException -` if the message was not understood.

`abstract def` clear : scala.Unit

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

`override def` clone : scala.collection.mutable.Set[A]

  Return a clone of this set.

Returns:
  a set with the same elements.

`def` excl (elems: A*): scala.Unit

  `excl` removes many elements from the set.

`def` filter (p: scala.Function1[A, scala.Boolean]): 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.

Returns:
  never.

`def` incl (elems: A*): scala.Unit

  `incl` can be used to add many elements to the set at the same time.

Parameters:
  `elems -` ...

`def` intersect (that: scala.collection.mutable.Set[A]): scala.Unit

  This method computes an intersection with set `that`. It removes all the elements that are not present in `that`.

Parameters:
  `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

Parameters:
  `elem -` ...
Parameters:
  `included -` ...