scala.collection

trait Set

[source: scala/collection/Set.scala]

trait Set[A]
extends (A) => Boolean with Iterable[A] with SetClass[A, Set] with SetTemplate[A, Set[A]]

A set is a collection that includes at most one of any object.

Author
Matthias Zenger
Martin Odersky
Version
2.8
Direct Known Subclasses:
BitSet, SetProxy, SortedSet, MapTemplate.DefaultKeySet, Set, Set

Method Summary
override def companion : Companion[Set]
The factory companion object that builds instances of class CC
Methods inherited from SetTemplate
contains (abstract), + (abstract), - (abstract), newBuilder, isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, equals, stringPrefix, toString
Methods inherited from Subtractable
-, --, --
Methods inherited from Addable
+, ++, ++
Methods inherited from SetClass
empty
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 Function1
compose, andThen
Methods inherited from AnyRef
getClass, hashCode, clone, 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