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

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

Def Summary
| `def` + (elem1: A, elem2: A, elems: A*) : scala.collection.mutable.Set[A] Add two or more elements to this set.
| `def` + (elem: A) : scala.collection.mutable.Set[A] Add a new element to the set.
| `def` ++ (elems: scala.Iterable[A]) : scala.collection.mutable.Set[A] Add all the elements provided by an iterator of the iterable object `elems` to the set.
| `def` ++ (elems: scala.Iterator[A]) : scala.collection.mutable.Set[A] Add all the elements provided by an iterator `elems` to the set.
| `def` ++= (elems: scala.Iterable[A]) : scala.Unit Add all the elements provided by an iterator of the iterable object `that` to the set.
| `def` ++= (elems: scala.Iterator[A]) : scala.Unit Add all the elements provided by an iterator `elems` to the set.
| `def` += (elem1: A, elem2: A, elems: A*) : scala.Unit Add two or more elements to this set.
`abstract` | `def` += (elem: A) : scala.Unit Add a new element to the set.
| `def` - (elem1: A, elem2: A, elems: A*) : scala.collection.mutable.Set[A] Remove two or more elements from this set.
| `def` - (elem: A) : scala.collection.mutable.Set[A] Remove a new element from the set.
| `def` -- (elems: scala.Iterable[A]) : scala.collection.mutable.Set[A] Remove all the elements provided by an iterator of the iterable object `elems` from the set.
| `def` -- (elems: scala.Iterator[A]) : scala.collection.mutable.Set[A] Remove all the elements provided by an iterator `elems` from the set.
| `def` --= (elems: scala.Iterable[A]) : scala.Unit Remove all the elements provided by an iterator of the iterable object `elems` from the set.
| `def` --= (elems: scala.Iterator[A]) : scala.Unit Remove all the elements provided by an iterator `elems` from the set.
| `def` -= (elem1: A, elem2: A, elems: A*) : scala.Unit Remove two or more elements from this set.
`abstract` | `def` -= (elem: A) : scala.Unit Removes a single element from a set.
| `def` << (cmd: scala.collection.mutable.Message[A]) : 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 : scala.collection.mutable.Set[A] Return a clone of this set.
| `def` excl (elems: A*) : scala.Unit `excl` removes many elements from the set.
`override` | `def` filter (p: (A) => scala.Boolean) : scala.collection.mutable.Set[A] Method `filter` removes all elements from the set for which the predicate `p` yields the value `false`.
| `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` retain (p: (A) => scala.Boolean) : scala.Unit Method `retain removes all elements from the set for which the predicate `p` yields the value `false`.`
| `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 inherited from scala.collection.Set[A]
apply , contains, equals, hashCode, isEmpty, size, subsetOf, toString

Def inherited from scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]]
<<

Def Detail

`def` + (elem1: A, elem2: A, elems: A*): scala.collection.mutable.Set[A]

  Add two or more elements to this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `kv2 -` the second element.
Parameters:
  `kvs -` the remaining elements.
Returns:
  the set itself with the elements added.

`def` + (elem: A): scala.collection.mutable.Set[A]

  Add a new element to the set.

Returns:
  the set itself with the element added.
Parameters:
  `elem -` the element to be added

`def` ++ (elems: scala.Iterable[A]): scala.collection.mutable.Set[A]

  Add all the elements provided by an iterator of the iterable object `elems` to the set.

Parameters:
  `elems -` the iterable object containing the elements to be added
Returns:
  the set itself with the elements added.

`def` ++ (elems: scala.Iterator[A]): scala.collection.mutable.Set[A]

  Add all the elements provided by an iterator `elems` to the set.

Parameters:
  `elems -` the iterator containing the elements to be added

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

  Add all the elements provided by an iterator of the iterable object `that` to the set.

Parameters:
  `elems -` the iterable object containing the elements to be added

`def` ++= (elems: scala.Iterator[A]): scala.Unit

  Add all the elements provided by an iterator `elems` to the set.

Parameters:
  `elems -` the iterator containing the elements to be added

`def` += (elem1: A, elem2: A, elems: A*): scala.Unit

  Add two or more elements to this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `kv2 -` the second element.
Parameters:
  `kvs -` the remaining elements.

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

  Add a new element to the set.

Parameters:
  `elem -` the element to be added

`def` - (elem1: A, elem2: A, elems: A*): scala.collection.mutable.Set[A]

  Remove two or more elements from this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `elem2 -` the second element.
Parameters:
  `elems -` the remaining elements.
Returns:
  the set itself with the elements removed.

`def` - (elem: A): scala.collection.mutable.Set[A]

  Remove a new element from the set.

Returns:
  the set itself with the element removed.
Parameters:
  `elem -` the element to be removed

`def` -- (elems: scala.Iterable[A]): scala.collection.mutable.Set[A]

  Remove all the elements provided by an iterator of the iterable object `elems` from the set.

Parameters:
  `elems -` An iterable object containing the elements to remove from the set.
Returns:
  the set itself with the elements removed.

`def` -- (elems: scala.Iterator[A]): scala.collection.mutable.Set[A]

  Remove all the elements provided by an iterator `elems` from the set.

Parameters:
  `elems -` An iterator containing the elements to remove from the set.
Returns:
  the set itself with the elements removed.

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

  Remove all the elements provided by an iterator of the iterable object `elems` from the set.

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

  Remove all the elements provided by an iterator `elems` from the set.

`def` -= (elem1: A, elem2: A, elems: A*): scala.Unit

  Remove two or more elements from this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `elem2 -` the second element.
Parameters:
  `elems -` the remaining elements.

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

  Removes a single element from a set.

Parameters:
  `elem -` The element to be removed.

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

  Send a message to this scriptable object.

Parameters:
  `cmd -` the message to send.
Throws:
  `<code>Predef.UnsupportedOperationException</code> -` if the message was not understood.

`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.

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

  `excl` removes many elements from the set.

[scala.deprecated]
`override def` filter (p: (A) => scala.Boolean): scala.collection.mutable.Set[A]

  Method `filter` removes all elements from the set for which the predicate `p` yields the value `false`.

Deprecated:
  use retain instead

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

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

Deprecated:
  use `++=` instead

`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 -` the set to intersect with.

`def` retain (p: (A) => scala.Boolean): scala.Unit

  Method `retain removes all elements from the set for which the predicate `p` yields the value `false`.`

`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