class UnionSet[A] extends Set[A]

A (lazy) Set that represents the union of two (not necessarily disjoint) Sets

Linear Supertypes
Set[A], Equals, SetOps[A, Set, Set[A]], (A) => Boolean, Iterable[A], IterableFactoryDefaults[A, [x]Set[x]], IterableOps[A, [_]Set[_], Set[A]], IterableOnceOps[A, [_]Set[_], Set[A]], IterableOnce[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnionSet
  2. Set
  3. Equals
  4. SetOps
  5. Function1
  6. Iterable
  7. IterableFactoryDefaults
  8. IterableOps
  9. IterableOnceOps
  10. IterableOnce
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def &(that: Set[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @inline()
  4. final def &~(that: Set[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @inline()
  5. final def ++(that: IterableOnce[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @inline()
  6. final def ++[B >: A](suffix: IterableOnce[B]): Set[B]
    Definition Classes
    IterableOps
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  9. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  10. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  11. def andThen[A](g: (Boolean) => A): (A) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. final def apply(elem: A): Boolean
    Definition Classes
    SetOps → Function1
    Annotations
    @inline()
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def canEqual(that: Any): Boolean
    Definition Classes
    Set → Equals
  15. def className: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  17. final def coll: UnionSet.this.type
    Attributes
    protected
    Definition Classes
    Iterable → IterableOps
  18. def collect[B](pf: PartialFunction[A, B]): Set[B]
    Definition Classes
    IterableOps → IterableOnceOps
  19. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
    IterableOnceOps
  20. def compose[A](g: (A) => A): (A) => Boolean
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  21. def concat(that: IterableOnce[A]): Set[A]
    Definition Classes
    SetOps
  22. def concat[B >: A](suffix: IterableOnce[B]): Set[B]
    Definition Classes
    IterableOps
  23. def contains(x: A): Boolean
    Definition Classes
    UnionSet → SetOps
  24. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  25. def copyToArray[B >: A](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  26. def copyToArray[B >: A](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  27. def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  28. def count(p: (A) => Boolean): Int
    Definition Classes
    IterableOnceOps
  29. def diff(that: Set[A]): Set[A]
    Definition Classes
    UnionSet → SetOps
  30. def drop(n: Int): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  31. def dropRight(n: Int): Set[A]
    Definition Classes
    IterableOps
  32. def dropWhile(p: (A) => Boolean): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  33. def empty: Set[A]
    Definition Classes
    IterableFactoryDefaults → IterableOps
  34. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def equals(that: Any): Boolean
    Definition Classes
    Set → Equals → AnyRef → Any
  36. def exists(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  37. def filter(pred: (A) => Boolean): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  38. def filterNot(pred: (A) => Boolean): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  39. def find(p: (A) => Boolean): Option[A]
    Definition Classes
    IterableOnceOps
  40. def flatMap[B](f: (A) => IterableOnce[B]): Set[B]
    Definition Classes
    IterableOps → IterableOnceOps
  41. def flatten[B](implicit asIterable: (A) => IterableOnce[B]): Set[B]
    Definition Classes
    IterableOps → IterableOnceOps
  42. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  43. def foldLeft[B](z: B)(op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  44. def foldRight[B](z: B)(op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  45. def forall(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  46. def foreach[U](f: (A) => U): Unit
    Definition Classes
    IterableOnceOps
  47. def fromSpecific(coll: IterableOnce[A]): Set[A]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  49. def groupBy[K](f: (A) => K): Map[K, Set[A]]
    Definition Classes
    IterableOps
  50. def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Set[B]]
    Definition Classes
    IterableOps
  51. def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
    Definition Classes
    IterableOps
  52. def grouped(size: Int): Iterator[Set[A]]
    Definition Classes
    IterableOps
  53. def hashCode(): Int
    Definition Classes
    Set → AnyRef → Any
  54. def head: A
    Definition Classes
    IterableOps
  55. def headOption: Option[A]
    Definition Classes
    IterableOps
  56. def init: Set[A]
    Definition Classes
    IterableOps
  57. def inits: Iterator[Set[A]]
    Definition Classes
    IterableOps
  58. def intersect(that: Set[A]): Set[A]
    Definition Classes
    SetOps
  59. def isEmpty: Boolean
    Definition Classes
    IterableOnceOps
  60. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  61. def isTraversableAgain: Boolean
    Definition Classes
    IterableOps → IterableOnceOps
  62. def iterableFactory: IterableFactory[Set]
    Definition Classes
    Set → Iterable → IterableOps
  63. def iterator: Iterator[A]
    Definition Classes
    UnionSet → IterableOnce
  64. def knownSize: Int
    Definition Classes
    IterableOnce
  65. def last: A
    Definition Classes
    IterableOps
  66. def lastOption: Option[A]
    Definition Classes
    IterableOps
  67. def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, UnionSet.this.type]
    Definition Classes
    Iterable
  68. def map[B](f: (A) => B): Set[B]
    Definition Classes
    IterableOps → IterableOnceOps
  69. def max[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  70. def maxBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  71. def maxByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  72. def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  73. def maybeDuplicateIterator: Iterator[A]

    Iterator that might return some of the elements repeatedly

  74. def min[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  75. def minBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  76. def minByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  77. def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  78. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  79. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  80. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  81. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  82. def newSpecificBuilder: Builder[A, Set[A]]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  83. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  84. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  85. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  86. def partition(p: (A) => Boolean): (Set[A], Set[A])
    Definition Classes
    IterableOps
  87. def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Set[A1], Set[A2])
    Definition Classes
    IterableOps
  88. def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  89. def reduce[B >: A](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  90. def reduceLeft[B >: A](op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  91. def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
    Definition Classes
    IterableOnceOps
  92. def reduceOption[B >: A](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  93. def reduceRight[B >: A](op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  94. def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  95. def reversed: Iterable[A]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  96. def scan[B >: A](z: B)(op: (B, B) => B): Set[B]
    Definition Classes
    IterableOps
  97. def scanLeft[B](z: B)(op: (B, A) => B): Set[B]
    Definition Classes
    IterableOps → IterableOnceOps
  98. def scanRight[B](z: B)(op: (A, B) => B): Set[B]
    Definition Classes
    IterableOps
  99. lazy val size: Int
    Definition Classes
    UnionSet → IterableOnceOps
  100. def sizeCompare(that: Iterable[_]): Int
    Definition Classes
    IterableOps
  101. def sizeCompare(otherSize: Int): Int
    Definition Classes
    IterableOps
  102. final def sizeIs: SizeCompareOps
    Definition Classes
    IterableOps
    Annotations
    @inline()
  103. def slice(from: Int, until: Int): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  104. def sliding(size: Int, step: Int): Iterator[Set[A]]
    Definition Classes
    IterableOps
  105. def sliding(size: Int): Iterator[Set[A]]
    Definition Classes
    IterableOps
  106. def span(p: (A) => Boolean): (Set[A], Set[A])
    Definition Classes
    IterableOps → IterableOnceOps
  107. def splitAt(n: Int): (Set[A], Set[A])
    Definition Classes
    IterableOps → IterableOnceOps
  108. def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
    Definition Classes
    IterableOnce
  109. def stringPrefix: String
    Attributes
    protected[this]
    Definition Classes
    Set → Iterable
  110. def subsetOf(that: Set[A]): Boolean
    Definition Classes
    SetOps
  111. def subsets(): Iterator[Set[A]]
    Definition Classes
    SetOps
  112. def subsets(len: Int): Iterator[Set[A]]
    Definition Classes
    SetOps
  113. def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  114. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  115. def tail: Set[A]
    Definition Classes
    IterableOps
  116. def tails: Iterator[Set[A]]
    Definition Classes
    IterableOps
  117. def take(n: Int): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  118. def takeRight(n: Int): Set[A]
    Definition Classes
    IterableOps
  119. def takeWhile(p: (A) => Boolean): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  120. def tapEach[U](f: (A) => U): Set[A]
    Definition Classes
    IterableOps → IterableOnceOps
  121. def to[C1](factory: Factory[A, C1]): C1
    Definition Classes
    IterableOnceOps
  122. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  123. final def toBuffer[B >: A]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  124. def toIndexedSeq: IndexedSeq[A]
    Definition Classes
    IterableOnceOps
  125. def toList: List[A]
    Definition Classes
    IterableOnceOps
  126. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  127. def toSeq: Seq[A]
    Definition Classes
    IterableOnceOps
  128. def toSet[B >: A]: Set[B]
    Definition Classes
    IterableOnceOps
  129. def toString(): String
    Definition Classes
    Set → Function1 → Iterable → AnyRef → Any
  130. def toVector: Vector[A]
    Definition Classes
    IterableOnceOps
  131. def transpose[B](implicit asIterable: (A) => Iterable[B]): Set[Set[B]]
    Definition Classes
    IterableOps
  132. final def union(that: Set[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @inline()
  133. def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Set[A1], Set[A2])
    Definition Classes
    IterableOps
  134. def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Set[A1], Set[A2], Set[A3])
    Definition Classes
    IterableOps
  135. def view: View[A]
    Definition Classes
    IterableOps
  136. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  137. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  138. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  139. def withFilter(p: (A) => Boolean): WithFilter[A, [_]Set[_]]
    Definition Classes
    IterableOps
  140. def zip[B](that: IterableOnce[B]): Set[(A, B)]
    Definition Classes
    IterableOps
  141. def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): Set[(A1, B)]
    Definition Classes
    IterableOps
  142. def zipWithIndex: Set[(A, Int)]
    Definition Classes
    IterableOps → IterableOnceOps
  143. final def |(that: Set[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @inline()

Deprecated Value Members

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

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

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

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

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

  6. def --(that: IterableOnce[A]): Set[A]
    Definition Classes
    SetOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Consider requiring an immutable Set

  7. 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 /:

  8. 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 :\

  9. 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, use ParIterableLike#aggregate.

  10. def companion: IterableFactory[[_]Set[_]]
    Definition Classes
    IterableOps
    Annotations
    @deprecated @deprecatedOverriding() @inline()
    Deprecated

    (Since version 2.13.0) Use iterableFactory instead

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

  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  13. 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)

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

  15. def seq: UnionSet.this.type
    Definition Classes
    Iterable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterable.seq always returns the iterable itself

  16. 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 or toSeq, but it doesn't copy non-immutable collections

  17. final def toIterator: Iterator[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  18. final def toStream: Stream[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

  19. 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 or toSeq, but it doesn't copy non-immutable collections

  20. 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)

Inherited from Set[A]

Inherited from Equals

Inherited from SetOps[A, Set, Set[A]]

Inherited from (A) => Boolean

Inherited from Iterable[A]

Inherited from IterableFactoryDefaults[A, [x]Set[x]]

Inherited from IterableOps[A, [_]Set[_], Set[A]]

Inherited from IterableOnceOps[A, [_]Set[_], Set[A]]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped