scala.collection.mutable

trait Set

[source: scala/collection/mutable/Set.scala]

trait Set[A]
extends Iterable[A] with Set[A] with SetClass[A, Set] with MutableSetTemplate[A, Set[A]] with Unhashable
A generic trait for mutable sets. Concrete set implementations have to provide functionality for the abstract methods in Set: def contains(elem: A): Boolean def iterator: Iterator[A] def += (elem: A): this.type def -= (elem: A): this.type
Author
Matthias Zenger
Martin Odersky
Version
2.8
Direct Known Subclasses:
JavaConversions.JSetWrapper, BitSet, HashSet, ImmutableSetAdaptor, LinkedHashSet, ObservableSet, SetProxy, SynchronizedSet, ListView.selection.Indices, Table.selection.SelectionSet

Method Summary
override def companion : Companion[Set]
The factory companion object that builds instances of class CC
Methods inherited from Unhashable
hashCode, identityHashCode
Methods inherited from MutableSetTemplate
+= (abstract), -= (abstract), newBuilder, add, remove, update, retain, clear, clone, result, +, +, ++, ++, -, -, --, --, <<
Methods inherited from Shrinkable
-=, --=, --=
Methods inherited from Builder
sizeHint, mapResult
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from SetTemplate
contains (abstract), isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, equals, stringPrefix, toString
Methods inherited from SetClass
empty
Methods inherited from Function1
compose, andThen
Methods inherited from IterableTemplate
iterator (abstract), elements, foreach, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, view, view, first, firstOption, toSeq, projection
Methods inherited from TraversableClass
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSequence, toSet, mkString, mkString, mkString, addString, addString, addString
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def companion : Companion[Set]
The factory companion object that builds instances of class CC
Overrides
Iterable.companion, Set.companion