scala.collection.JavaConversions

JSetWrapper

class JSetWrapper[A](underlying: Set[A]) extends Set[A] with SetLike[A, JSetWrapper[A]] with Product

Go to: companion

Inherits

  1. Product
  2. Set
  3. SetLike
  4. Cloneable
  5. Shrinkable
  6. Builder
  7. Growable
  8. Scriptable
  9. Set
  10. SetLike
  11. Subtractable
  12. Addable
  13. GenericSetTemplate
  14. Function1
  15. Iterable
  16. Iterable
  17. IterableLike
  18. Equals
  19. Traversable
  20. Mutable
  21. Traversable
  22. GenericTraversableTemplate
  23. TraversableLike
  24. HasNewBuilder
  25. AnyRef
  26. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def &(that: Set[A]): JSetWrapper[A]

    Computes the intersection between this set and another set

  2. def &~(that: Set[A]): JSetWrapper[A]

    The difference of this set and another set

  3. def **(that: Set[A]): JSetWrapper[A]

    This method is an alias for intersect

  4. def +(elem1: A, elem2: A, elems: A*): JSetWrapper[A]

    Adds two or more elements to this collection and returns the collection itself

  5. def +(elem: A): JSetWrapper[A]

    Adds a single element to this collection and returns the collection itself

  6. def ++(iter: Iterator[A]): JSetWrapper[A]

    Adds a number of elements provided by an iterator and returns the collection itself

  7. def ++(iter: Traversable[A]): JSetWrapper[A]

    Adds a number of elements provided by a traversable object and returns either the collection itself

  8. def ++(that: Iterator[A]): Set[A]

    [use case] Concatenates this mutable set with the elements of an iterator

  9. def ++[B >: A, That](that: Iterator[B])(bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Concatenates this mutable set with the elements of an iterator

  10. def ++(that: Traversable[A]): Set[A]

    [use case] Concatenates this mutable set with the elements of a traversable collection

  11. def ++[B >: A, That](that: Traversable[B])(bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Concatenates this mutable set with the elements of a traversable collection

  12. def ++=(elems: Traversable[A]): Growable[A]

    adds all elements contained in a traversable collection to this mutable set

  13. def ++=(iter: Iterator[A]): Growable[A]

    adds all elements produced by an iterator to this mutable set

  14. def +=(elem: A): JSetWrapper[A]

    Adds a single element to the builder

  15. def +=(elem1: A, elem2: A, elems: A*): Growable[A]

    adds two or more elements to this mutable set

  16. def -(elem1: A, elem2: A, elems: A*): JSetWrapper[A]

    Removes two or more elements from this collection and returns the collection itself

  17. def -(elem: A): JSetWrapper[A]

    Removes a single element from this collection and returns the collection itself

  18. def --(iter: Iterator[A]): JSetWrapper[A]

    Removes a number of elements provided by an iterator and returns the collection itself

  19. def --(iter: Traversable[A]): JSetWrapper[A]

    Removes a number of elements provided by a Traversable object and returns the collection itself

  20. def --=(iter: Traversable[A]): Shrinkable[A]

    Removes all elements contained in a traversable collection from this mutable set

  21. def --=(iter: Iterator[A]): Shrinkable[A]

    Removes all elements produced by an iterator from this mutable set

  22. def -=(elem: A): JSetWrapper[A]

    Removes a single element from this mutable set

  23. def -=(elem1: A, elem2: A, elems: A*): Shrinkable[A]

    Removes two or more elements from this mutable set

  24. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Applies a binary operator to a start value and all elements of this mutable set, going left to right

  25. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable set and a start value, going right to left

  26. def <<(cmd: Message[A]): Unit

    Send a message to this scriptable object

  27. def add(elem: A): Boolean

    Adds an element to this mutable set

  28. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this mutable set to a string builder

  29. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this mutable set to a string builder using a separator string

  30. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this mutable set to a string builder using start, end, and separator strings

  31. def andThen[A](g: (Boolean) ⇒ A): (A) ⇒ A

    (f andThen g)(x) == g(f(x))

  32. def apply(elem: A): Boolean

    Tests if some element is contained in this set

  33. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  34. def clear(): Unit

    Removes all elements from the set

  35. def clone(): Set[A]

    This method creates and returns a copy of the receiver object

  36. def companion: GenericCompanion[Set[A][A]]

    The factory companion object that builds instances of class mutable

  37. def compose[A](g: (A) ⇒ A): (A) ⇒ Boolean

    (f compose g)(x) == f(g(x))

  38. def contains(elem: A): Boolean

    Tests if some element is contained in this set

  39. def copyToArray(xs: Array[A], start: Int, len: Int): Unit

    [use case] Copies elements of this mutable set to an array

  40. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this mutable set to an array

  41. def copyToArray(xs: Array[A], start: Int): Unit

    [use case] Copies elements of this mutable set to an array

  42. def copyToArray[B >: A](xs: Array[B]): Unit

    Copies elements of this mutable set to an array

  43. def copyToArray(xs: Array[A], start: Int): Unit

    [use case] Copies elements of this mutable set to an array

  44. def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Copies elements of this mutable set to an array

  45. def copyToBuffer[B >: A](dest: Buffer[B]): Unit

    Copies all elements of this mutable set to a buffer

  46. def count(p: (A) ⇒ Boolean): Int

    Counts the number of elements in the mutable set which satisfy a predicate

  47. def diff(that: Set[A]): JSetWrapper[A]

    Computes the difference of this set and another set

  48. def drop(n: Int): JSetWrapper[A]

    Selects all elements except first n ones

  49. def dropRight(n: Int): JSetWrapper[A]

    Selects all elements except first n ones

  50. def dropWhile(p: (A) ⇒ Boolean): JSetWrapper[A]

    Drops longest prefix of elements that satisfy a predicate

  51. def elements: Iterator[A]

  52. def empty: JSetWrapper[A]

  53. def equals(that: Any): Boolean

    Compares this set with another object for equality

  54. def exists(p: (A) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this mutable set

  55. def filter(p: (A) ⇒ Boolean): JSetWrapper[A]

    Selects all elements of this mutable set which satisfy a predicate

  56. def filterNot(p: (A) ⇒ Boolean): JSetWrapper[A]

    Selects all elements of this mutable set which do not satisfy a predicate

  57. def find(p: (A) ⇒ Boolean): Option[A]

    Finds the first element of the mutable set satisfying a predicate, if any

  58. def first: A

  59. def firstOption: Option[A]

    None if iterable is empty

  60. def flatMap[B](f: (A) ⇒ Traversable[B]): Set[B]

    [use case] Builds a new collection by applying a function to all elements of this mutable set and concatenating the results

  61. def flatMap[B, That](f: (A) ⇒ Traversable[B])(bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Builds a new collection by applying a function to all elements of this mutable set and concatenating the results

  62. def flatten[B]: Set[B]

    [use case] Converts this mutable set of traversable collections into a mutable set in which all element collections are concatenated

  63. def flatten[B](asTraversable: (A) ⇒ Traversable[B]): Set[B]

    Converts this mutable set of traversable collections into a mutable set in which all element collections are concatenated

  64. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Applies a binary operator to a start value and all elements of this mutable set, going left to right

  65. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable set and a start value, going right to left

  66. def forall(p: (A) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this mutable set

  67. def foreach(f: (A) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this mutable set

  68. def foreach[U](f: (A) ⇒ U): Unit

    Applies a function f to all elements of this mutable set

  69. def genericBuilder[B]: Builder[B, Set[B]]

    The generic builder that builds instances of mutable

  70. def groupBy[K](f: (A) ⇒ K): Map[K, JSetWrapper[A]]

    Partitions this mutable set into a map of mutable sets according to some discriminator function

  71. def grouped(size: Int): Iterator[JSetWrapper[A]]

    Partitions elements in fixed size mutable sets

  72. def hasDefiniteSize: Boolean

    Tests whether this mutable set is known to have a finite size

  73. def hashCode(): Int

    Returns a hash code value for the object

  74. def head: A

    Selects the first element of this mutable set

  75. def headOption: Option[A]

    Optionally selects the first element

  76. def init: JSetWrapper[A]

    Selects all elements except the last

  77. def intersect(that: Set[A]): JSetWrapper[A]

    Computes the intersection between this set and another set

  78. def isEmpty: Boolean

    Tests if this set is empty

  79. def iterator: Iterator[A]

    Creates a new iterator over all elements contained in this iterable object

  80. def last: A

    Selects the last element

  81. def lastOption: Option[A]

    Optionally selects the last element

  82. def map[B](f: (A) ⇒ B): Set[B]

    [use case] Builds a new collection by applying a function to all elements of this mutable set

  83. def map[B, That](f: (A) ⇒ B)(bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Builds a new collection by applying a function to all elements of this mutable set

  84. def mapResult[NewTo](f: (JSetWrapper[A]) ⇒ NewTo): Builder[A, NewTo]

    Creates a new builder by applying a transformation function to the results of this builder

  85. def max[B >: A](cmp: Ordering[B]): A

    Finds the largest element

  86. def min: A

    [use case] Finds the largest element

  87. def min: A

    [use case] Finds the smallest element

  88. def min[B >: A](cmp: Ordering[B]): A

    Finds the smallest element

  89. def mkString: String

    Displays all elements of this mutable set in a string

  90. def mkString(sep: String): String

    Displays all elements of this mutable set in a string using a separator string

  91. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this mutable set in a string using start, end, and separator strings

  92. def nonEmpty: Boolean

    Tests whether the mutable set is not empty

  93. def partialMap[B](pf: PartialFunction[A, B]): Set[B]

    [use case] Builds a new collection by applying a partial function to all elements of this mutable set on which the function is defined

  94. def partialMap[B, That](pf: PartialFunction[A, B])(bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Builds a new collection by applying a partial function to all elements of this mutable set on which the function is defined

  95. def partition(p: (A) ⇒ Boolean): (JSetWrapper[A], JSetWrapper[A])

    Partitions this mutable set in two mutable sets according to a predicate

  96. def product: Int

    [use case] Multiplies up the elements of this collection

  97. def product[B >: A](num: Numeric[B]): B

    Multiplies up the elements of this collection

  98. def productArity: Int

    return k for a product A(x_1,

  99. def productElement(arg0: Int): Any

    for a product A(x_1,

  100. def productElements: Iterator[Any]

  101. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  102. def productPrefix: String

    By default the empty string

  103. def projection: IterableView[A, JSetWrapper[A]]

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection

  104. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Applies a binary operator to all elements of this mutable set, going left to right

  105. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this mutable set, going left to right

  106. def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable set, going right to left

  107. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this mutable set, going right to left

  108. def remove(elem: A): Boolean

    Removes an element from this set

  109. def repr: JSetWrapper[A]

    The collection of type mutable set underlying this TraversableLike object

  110. def result(): JSetWrapper[A]

    The result when this set is used as a builder

  111. def retain(p: (A) ⇒ Boolean): Unit

    Removes all elements from the set for which do not satisfy a predicate

  112. def sameElements(that: Iterable[A]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this mutable set

  113. def sameElements[B >: A](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this mutable set

  114. def size: Int

    The size of this mutable set

  115. def sizeHint(size: Int): Unit

    Gives a hint how many elements are expected to be added when the next result is called

  116. def slice(from: Int, until: Int): JSetWrapper[A]

    Selects an interval of elements

  117. def sliding[B >: A](size: Int, step: Int): Iterator[JSetWrapper[A]]

  118. def sliding[B >: A](size: Int): Iterator[JSetWrapper[A]]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped

  119. def span(p: (A) ⇒ Boolean): (JSetWrapper[A], JSetWrapper[A])

    Spits this mutable set into a prefix/suffix pair according to a predicate

  120. def splitAt(n: Int): (JSetWrapper[A], JSetWrapper[A])

    Splits this mutable set into two at a given position

  121. def stringPrefix: String

    Defines the prefix of this object's toString representation

  122. def subsetOf(that: Set[A]): Boolean

    Tests whether this set is a subset of another set

  123. def sum: Int

    [use case] Sums up the elements of this collection

  124. def sum[B >: A](num: Numeric[B]): B

    Sums up the elements of this collection

  125. def tail: JSetWrapper[A]

    Selects all elements except the first

  126. def take(n: Int): JSetWrapper[A]

    Selects first n elements

  127. def takeRight(n: Int): JSetWrapper[A]

    Selects last n elements

  128. def takeWhile(p: (A) ⇒ Boolean): JSetWrapper[A]

    Takes longest prefix of elements that satisfy a predicate

  129. def toArray: Array[A]

    [use case] Converts this mutable set to an array

  130. def toArray[B >: A](arg0: ClassManifest[B]): Array[B]

    Converts this mutable set to an array

  131. def toIndexedSeq[B >: A]: IndexedSeq[B]

    Converts this mutable set to an indexed sequence

  132. def toIterable: Iterable[A]

    Converts this mutable set to an iterable collection

  133. def toList: List[A]

    Converts this mutable set to a list

  134. def toMap[T, U](ev: <:<[A, (T, U)]): Map[T, U]

    Converts this mutable set to a map

  135. def toSeq: Seq[A]

    Converts this mutable set to a sequence

  136. def toSet[B >: A]: Set[B]

    Converts this mutable set to a set

  137. def toStream: Stream[A]

    Converts this mutable set to a stream

  138. def toString(): String

    Converts this mutable set to a string

  139. def transpose[B](asTraversable: (A) ⇒ Traversable[B]): Set[Set[B]]

    Transposes this mutable set of traversable collections into

  140. val underlying: Set[A]

  141. def union(that: Set[A]): JSetWrapper[A]

    Computes the union between of set and another set

  142. def unzip[A1, A2](asPair: (A) ⇒ (A1, A2)): (Set[A1], Set[A2])

    Converts this mutable set of pairs into two collections of the first and second halfs of each pair

  143. def update(elem: A, included: Boolean): Unit

    Updates the presence of a single element in this set

  144. def view(from: Int, until: Int): IterableView[A, JSetWrapper[A]]

    Creates a non-strict view of a slice of this mutable set

  145. def view: IterableView[A, JSetWrapper[A]]

    Creates a non-strict view of this mutable set

  146. def withFilter(p: (A) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this mutable set

  147. def zip[B](that: Iterable[B]): Set[(A, B)]

    [use case] Returns a mutable set formed from this mutable set and another iterable collection by combining corresponding elements in pairs

  148. def zip[A1 >: A, B, That](that: Iterable[B])(bf: CanBuildFrom[JSetWrapper[A], (A1, B), That]): That

    Returns a mutable set formed from this mutable set and another iterable collection by combining corresponding elements in pairs

  149. def zipAll[B](that: Iterable[B], thisElem: A, thatElem: B): Set[(A, B)]

    [use case] Returns a mutable set formed from this mutable set and another iterable collection by combining corresponding elements in pairs

  150. def zipAll[B, A1 >: A, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[JSetWrapper[A], (A1, B), That]): That

    Returns a mutable set formed from this mutable set and another iterable collection by combining corresponding elements in pairs

  151. def zipWithIndex: Set[(A, Int)]

    [use case] Zips this mutable set with its indices

  152. def zipWithIndex[A1 >: A, That](bf: CanBuildFrom[JSetWrapper[A], (A1, Int), That]): That

    Zips this mutable set with its indices

  153. def |(that: Set[A]): JSetWrapper[A]

    Computes the union between this set and another set

Instance constructors

  1. new JSetWrapper(underlying: Set[A])

  2. new JSetWrapper()