class UnionSet[A] extends Set[A]
A (lazy) Set
that represents the union of two
(not necessarily disjoint) Set
s
- Alphabetic
- By Inheritance
- UnionSet
- Set
- Equals
- SetOps
- Function1
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def &(that: Set[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @inline()
- final def &~(that: Set[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @inline()
- final def ++(that: IterableOnce[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @inline()
- final def ++[B >: A](suffix: IterableOnce[B]): Set[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- def andThen[A](g: (Boolean) => A): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def apply(elem: A): Boolean
- Definition Classes
- SetOps → Function1
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- Set → Equals
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def coll: UnionSet.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[A, B]): Set[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def compose[A](g: (A) => A): (A) => Boolean
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def concat(that: IterableOnce[A]): Set[A]
- Definition Classes
- SetOps
- def concat[B >: A](suffix: IterableOnce[B]): Set[B]
- Definition Classes
- IterableOps
- def contains(x: A): Boolean
- Definition Classes
- UnionSet → SetOps
- def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: A](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: A](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (A) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def diff(that: Set[A]): Set[A]
- Definition Classes
- UnionSet → SetOps
- def drop(n: Int): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def dropRight(n: Int): Set[A]
- Definition Classes
- IterableOps
- def dropWhile(p: (A) => Boolean): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def empty: Set[A]
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Set → Equals → AnyRef → Any
- def exists(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(pred: (A) => Boolean): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: (A) => Boolean): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def find(p: (A) => Boolean): Option[A]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (A) => IterableOnce[B]): Set[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (A) => IterableOnce[B]): Set[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (A) => U): Unit
- Definition Classes
- IterableOnceOps
- def fromSpecific(coll: IterableOnce[A]): Set[A]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def groupBy[K](f: (A) => K): Map[K, Set[A]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Set[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[Set[A]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- Set → AnyRef → Any
- def head: A
- Definition Classes
- IterableOps
- def headOption: Option[A]
- Definition Classes
- IterableOps
- def init: Set[A]
- Definition Classes
- IterableOps
- def inits: Iterator[Set[A]]
- Definition Classes
- IterableOps
- def intersect(that: Set[A]): Set[A]
- Definition Classes
- SetOps
- def isEmpty: Boolean
- Definition Classes
- IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: IterableFactory[Set]
- Definition Classes
- Set → Iterable → IterableOps
- def iterator: Iterator[A]
- Definition Classes
- UnionSet → IterableOnce
- def knownSize: Int
- Definition Classes
- IterableOnce
- def last: A
- Definition Classes
- IterableOps
- def lastOption: Option[A]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, UnionSet.this.type]
- Definition Classes
- Iterable
- def map[B](f: (A) => B): Set[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def max[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def maybeDuplicateIterator: Iterator[A]
Iterator that might return some of the elements repeatedly
- def min[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[A, Set[A]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def partition(p: (A) => Boolean): (Set[A], Set[A])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Set[A1], Set[A2])
- Definition Classes
- IterableOps
- def product[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: A](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: A](op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: A](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: A](op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[A]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def scan[B >: A](z: B)(op: (B, B) => B): Set[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, A) => B): Set[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (A, B) => B): Set[B]
- Definition Classes
- IterableOps
- lazy val size: Int
- Definition Classes
- UnionSet → IterableOnceOps
- def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- IterableOps
- def sizeCompare(otherSize: Int): Int
- Definition Classes
- IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[Set[A]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[Set[A]]
- Definition Classes
- IterableOps
- def span(p: (A) => Boolean): (Set[A], Set[A])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (Set[A], Set[A])
- Definition Classes
- IterableOps → IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
- Definition Classes
- IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- Set → Iterable
- def subsetOf(that: Set[A]): Boolean
- Definition Classes
- SetOps
- def subsets(): Iterator[Set[A]]
- Definition Classes
- SetOps
- def subsets(len: Int): Iterator[Set[A]]
- Definition Classes
- SetOps
- def sum[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: Set[A]
- Definition Classes
- IterableOps
- def tails: Iterator[Set[A]]
- Definition Classes
- IterableOps
- def take(n: Int): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def takeRight(n: Int): Set[A]
- Definition Classes
- IterableOps
- def takeWhile(p: (A) => Boolean): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (A) => U): Set[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[A, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: A]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[A]
- Definition Classes
- IterableOnceOps
- def toList: List[A]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[A]
- Definition Classes
- IterableOnceOps
- def toSet[B >: A]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Set → Function1 → Iterable → AnyRef → Any
- def toVector: Vector[A]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: (A) => Iterable[B]): Set[Set[B]]
- Definition Classes
- IterableOps
- final def union(that: Set[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @inline()
- def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Set[A1], Set[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Set[A1], Set[A2], Set[A3])
- Definition Classes
- IterableOps
- def view: View[A]
- Definition Classes
- IterableOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (A) => Boolean): WithFilter[A, [_]Set[_]]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): Set[(A, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): Set[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Set[(A, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
- final def |(that: Set[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @inline()
Deprecated Value Members
- def +(elem1: A, elem2: A, elems: A*): Set[A]
- Definition Classes
- SetOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ with an explicit collection argument instead of + with varargs
- def +(elem: A): Set[A]
- Definition Classes
- SetOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Consider requiring an immutable Set or fall back to Set.union
- def ++:[B >: A](that: IterableOnce[B]): Set[B]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable
- def -(elem1: A, elem2: A, elems: A*): Set[A]
- Definition Classes
- SetOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use &- with an explicit collection argument instead of - with varargs
- def -(elem: A): Set[A]
- Definition Classes
- SetOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Consider requiring an immutable Set or fall back to Set.diff
- def --(that: IterableOnce[A]): Set[A]
- Definition Classes
- SetOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Consider requiring an immutable Set
- final def /:[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) For sequential collections, prefer
foldLeft(z)(seqop)
. For parallel collections, useParIterableLike#aggregate
.
- def companion: IterableFactory[[_]Set[_]]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- final def repr: Set[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def seq: UnionSet.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterable: UnionSet.this.type
- Definition Classes
- Iterable → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- final def toIterator: Iterator[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- def view(from: Int, until: Int): View[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)