scala.collection.JavaConversions

JSetWrapper

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

go to: companion
source: JavaConversions.scala
Inherited
  1. Hide All
  2. Show all
  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. TraversableOnce
  25. FilterMonadic
  26. HasNewBuilder
  27. AnyRef
  28. Any
Visibility
  1. Public
  2. All

Instance constructors

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

Type Members

  1. type Self = JSetWrapper[A]

    The type implementing this traversable

  2. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

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

    Computes the intersection between this set and another set.

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

    The difference of this set and another set.

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

    This method is an alias for intersect.

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

    Creates a new set consisting of all the elements of this set and two or more specified elements.

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

    Creates a new set consisting of all the elements of this set and elem.

  11. def ++(xs: TraversableOnce[A]): JSetWrapper[A]

    Creates a new set consisting of all the elements of this set and those provided by the specified traversable object.

  12. def ++(that: TraversableOnce[A]): Set[A]

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

  13. def ++[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Concatenates this mutable set with the elements of a traversable collection.

  14. def ++=(xs: TraversableOnce[A]): Growable[A]

    adds all elements produced by a TraversableOnce to this mutable set.

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

    Adds a single element to the set.

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

    adds two or more elements to this mutable set.

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

    Creates a new set consisting of all the elements of this set except the two or more specified elements.

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

    Creates a new set consisting of all the elements of this set except elem.

  19. def --(xs: TraversableOnce[A]): JSetWrapper[A]

    Creates a new set consisting of all the elements of this set except those provided by the specified traversable object.

  20. def --=(xs: TraversableOnce[A]): Shrinkable[A]

    Removes all elements produced by an iterator from this mutable set.

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

    Removes a single element from this mutable set.

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

    Removes two or more elements from this mutable set.

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

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

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

    Send a message to this scriptable object.

  26. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  27. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  28. def add(elem: A): Boolean

    Adds an element to this mutable set.

  29. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this mutable set to a string builder.

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

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

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

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

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

  33. def apply(elem: A): Boolean

    Tests if some element is contained in this set.

  34. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

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

  36. def clear(): Unit

    Removes all elements from the set.

  37. def clone(): JSetWrapper[A]

    This method creates and returns a copy of the receiver object.

  38. def collect[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.

  39. def collect[B, That](pf: PartialFunction[A, B])(implicit 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.

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

    The factory companion object that builds instances of class mutable.

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

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

  42. def contains(elem: A): Boolean

    Tests if some element is contained in this set.

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

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

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

    Copies elements of this mutable set to an array.

  45. def copyToArray(xs: Array[A]): Unit

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

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

    Copies values of this mutable set to an array.

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

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

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

    Copies values of this mutable set to an array.

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

    Copies all elements of this mutable set to a buffer.

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

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

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

    Computes the difference of this set and another set.

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

    Selects all elements except first n ones.

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

    Selects all elements except last n ones.

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

    Drops longest prefix of elements that satisfy a predicate.

  55. def elements: Iterator[A]

  56. def empty: JSetWrapper[A]

    The empty set of the same type as this set

  57. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  58. def equals(that: Any): Boolean

    Compares this set with another object for equality.

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

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

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

    Selects all elements of this mutable set which satisfy a predicate.

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

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

  62. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

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

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

  64. def first: A

  65. def firstOption: Option[A]

    None if iterable is empty.

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

  67. def flatMap[B, That](f: (A) ⇒ Traversable[B])(implicit 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.

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

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

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

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

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

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

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

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

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

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

    Applies a function f to all elements of this mutable set.

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

    The generic builder that builds instances of mutable.

  76. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

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

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

    Partitions elements in fixed size mutable sets.

  79. def hasDefiniteSize: Boolean

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

  80. def hashCode(): Int

    Returns a hash code value for the object.

  81. def head: A

    Selects the first element of this mutable set.

  82. def headOption: Option[A]

    Optionally selects the first element.

  83. def init: JSetWrapper[A]

    Selects all elements except the last.

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

    Computes the intersection between this set and another set.

  85. def isEmpty: Boolean

    Tests if this set is empty.

  86. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  87. def isTraversableAgain: Boolean

    Tests whether this mutable set can be repeatedly traversed.

  88. def iterator: Iterator[A]

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

  89. def last: A

    Selects the last element.

  90. def lastOption: Option[A]

    Optionally selects the last element.

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

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

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

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

  94. def max: A

    [use case] Finds the largest element.

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

    Finds the largest element.

  96. def min: A

    [use case] Finds the smallest element.

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

    Finds the smallest element.

  98. def mkString: String

    Displays all elements of this mutable set in a string.

  99. def mkString(sep: String): String

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

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

  101. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  102. def newBuilder: Builder[A, JSetWrapper[A]]

    A common implementation of newBuilder for all mutable sets in terms of empty.

  103. def nonEmpty: Boolean

    Tests whether the mutable set is not empty.

  104. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  105. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

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

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

  107. def product: Int

    [use case] Multiplies up the elements of this collection.

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

    Multiplies up the elements of this collection.

  109. def productArity: Int

    return k for a product A(x_1,.

  110. def productElement(arg0: Int): Any

    For a product A(x_1,.

  111. def productElements: Iterator[Any]

  112. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  113. def productPrefix: String

    By default the empty string.

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

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

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

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

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

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

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

  119. def remove(elem: A): Boolean

    Removes an element from this set.

  120. def repr: JSetWrapper[A]

    The collection of type mutable set underlying this TraversableLike object.

  121. def result(): JSetWrapper[A]

    The result when this set is used as a builder

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

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

  123. def reversed: List[A]

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

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

  126. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Produces a collection containing cummulative results of applying the operator going left to right.

  127. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[JSetWrapper[A], B, That]): That

    Produces a collection containing cummulative results of applying the operator going right to left.

  128. def size: Int

    The size of this mutable set.

  129. def sizeHint(coll: scala.collection.TraversableLike[_, _], delta: Int = 0): Unit

    Gives a hint that one expects the result of this builder to have the same size as the given collection, plus some delta.

  130. def sizeHint(size: Int): Unit

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

  131. def sizeHintBounded(size: Int, boundingColl: scala.collection.TraversableLike[_, _]): Unit

    Gives a hint how many elements are expected to be added when the next result is called, together with an upper bound given by the size of some other collection.

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

    Selects an interval of elements.

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

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

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

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

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

    Splits this mutable set into two at a given position.

  137. def stringPrefix: String

    Defines the prefix of this object's toString representation.

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

    Tests whether this set is a subset of another set.

  139. def sum: Int

    [use case] Sums up the elements of this collection.

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

    Sums up the elements of this collection.

  141. def synchronized[T0](arg0: T0): T0

  142. def tail: JSetWrapper[A]

    Selects all elements except the first.

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

    Selects first n elements.

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

    Selects last n elements.

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

    Takes longest prefix of elements that satisfy a predicate.

  146. def thisCollection: Iterable[A]

    The underlying collection seen as an instance of mutable.Set.

  147. def toArray: Array[A]

    [use case] Converts this mutable set to an array.

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

    Converts this mutable set to an array.

  149. def toBuffer[B >: A]: Buffer[B]

    Converts this mutable set to a mutable buffer.

  150. def toCollection(repr: JSetWrapper[A]): Iterable[A]

    A conversion from collections of type Repr to mutable.Set objects.

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

    Converts this mutable set to an indexed sequence.

  152. def toIterable: Iterable[A]

    Converts this mutable set to an iterable collection.

  153. def toIterator: Iterator[A]

    Returns an Iterator over the elements in this mutable set.

  154. def toList: List[A]

    Converts this mutable set to a list.

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

    Converts this mutable set to a map.

  156. def toSeq: Seq[A]

    Converts this mutable set to a sequence.

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

    Converts this mutable set to a set.

  158. def toStream: Stream[A]

    Converts this mutable set to a stream.

  159. def toString(): String

    Converts this mutable set to a string.

  160. def toTraversable: Traversable[A]

    Converts this mutable set to an unspecified Traversable.

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

    Transposes this mutable set of traversable collections into a mutable set of mutable sets.

  162. val underlying: Set[A]

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

    Computes the union between of set and another set.

  164. def unzip[A1, A2](implicit 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.

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

    Updates the presence of a single element in this set.

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

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

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

    Creates a non-strict view of this mutable set.

  168. def wait(): Unit

  169. def wait(arg0: Long, arg1: Int): Unit

  170. def wait(arg0: Long): Unit

  171. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, JSetWrapper[A]]

    Creates a non-strict filter of this mutable set.

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

  173. def zip[A1 >: A, B, That](that: Iterable[B])(implicit 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.

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

  175. def zipAll[B, A1 >: A, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit 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.

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

    [use case] Zips this mutable set with its indices.

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

    Zips this mutable set with its indices.

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

    Computes the union between this set and another set.