scala.collection.JavaConversions
A class supporting filtered operations
Computes the intersection between this set and another set
The difference of this set and another set
This method is an alias for intersect
Adds two or more elements to this collection and returns the collection itself
Adds a single element to this collection and returns the collection itself
Adds a number of elements provided by an iterator and returns the collection itself
Adds a number of elements provided by a traversable object and returns either the collection itself
[use case] Concatenates this mutable set with the elements of an iterator
Concatenates this mutable set with the elements of an iterator
[use case] Concatenates this mutable set with the elements of a traversable collection
Concatenates this mutable set with the elements of a traversable collection
adds all elements contained in a traversable collection to this mutable set
adds all elements produced by an iterator to this mutable set
Adds a single element to the builder
adds two or more elements to this mutable set
Removes two or more elements from this collection and returns the collection itself
Removes a single element from this collection and returns the collection itself
Removes a number of elements provided by an iterator and returns the collection itself
Removes a number of elements provided by a Traversable object and returns the collection itself
Removes all elements contained in a traversable collection from this mutable set
Removes all elements produced by an iterator from this mutable set
Removes a single element from this mutable set
Removes two or more elements from this mutable set
Applies a binary operator to a start value and all elements of this mutable set, going left to right
Applies a binary operator to all elements of this mutable set and a start value, going right to left
Send a message to this scriptable object
Adds an element to this mutable set
Appends all elements of this mutable set to a string builder
Appends all elements of this mutable set to a string builder using a separator string
Appends all elements of this mutable set to a string builder using start, end, and separator strings
(f andThen g)(x) == g(f(x))
Tests if some element is contained in this set
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind
Removes all elements from the set
This method creates and returns a copy of the receiver object
The factory companion object that builds instances of class mutable
(f compose g)(x) == f(g(x))
Tests if some element is contained in this set
[use case] Copies elements of this mutable set to an array
Copies elements of this mutable set to an array
[use case] Copies elements of this mutable set to an array
Copies elements of this mutable set to an array
[use case] Copies elements of this mutable set to an array
Copies elements of this mutable set to an array
Copies all elements of this mutable set to a buffer
Counts the number of elements in the mutable set which satisfy a predicate
Computes the difference of this set and another set
Selects all elements except first n ones
Selects all elements except first n ones
Drops longest prefix of elements that satisfy a predicate
Compares this set with another object for equality
Tests whether a predicate holds for some of the elements of this mutable set
Selects all elements of this mutable set which satisfy a predicate
Selects all elements of this mutable set which do not satisfy a predicate
Finds the first element of the mutable set satisfying a predicate, if any
None
if iterable is empty
[use case] Builds a new collection by applying a function to all elements of this mutable set and concatenating the results
Builds a new collection by applying a function to all elements of this mutable set and concatenating the results
[use case] Converts this mutable set of traversable collections into a mutable set in which all element collections are concatenated
Converts this mutable set of traversable collections into a mutable set in which all element collections are concatenated
Applies a binary operator to a start value and all elements of this mutable set, going left to right
Applies a binary operator to all elements of this mutable set and a start value, going right to left
Tests whether a predicate holds for all elements of this mutable set
[use case] Applies a function f
to all elements of this mutable set
Applies a function f
to all elements of this mutable set
The generic builder that builds instances of mutable
Partitions this mutable set into a map of mutable sets according to some discriminator function
Partitions elements in fixed size mutable sets
Tests whether this mutable set is known to have a finite size
Returns a hash code value for the object
Selects the first element of this mutable set
Optionally selects the first element
Selects all elements except the last
Computes the intersection between this set and another set
Tests if this set is empty
Creates a new iterator over all elements contained in this iterable object
Selects the last element
Optionally selects the last element
[use case] Builds a new collection by applying a function to all elements of this mutable set
Builds a new collection by applying a function to all elements of this mutable set
Creates a new builder by applying a transformation function to the results of this builder
Finds the largest element
[use case] Finds the largest element
[use case] Finds the smallest element
Finds the smallest element
Displays all elements of this mutable set in a string
Displays all elements of this mutable set in a string using a separator string
Displays all elements of this mutable set in a string using start, end, and separator strings
Tests whether the mutable set is not empty
[use case] Builds a new collection by applying a partial function to all elements of this mutable set on which the function is defined
Builds a new collection by applying a partial function to all elements of this mutable set on which the function is defined
Partitions this mutable set in two mutable sets according to a predicate
[use case] Multiplies up the elements of this collection
Multiplies up the elements of this collection
return k for a product A(x_1,
def
productElement(arg0: Int): Any
for a product A(x_1,
def
productElements: Iterator[Any]
def
productIterator: Iterator[Any]
An iterator that returns all fields of this product
def
productPrefix: String
By default the empty string
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
def
reduceLeft[B >: A](op: (B, A) ⇒ B): B
Applies a binary operator to all elements of this mutable set, going left to right
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
def
reduceRight[B >: A](op: (A, B) ⇒ B): B
Applies a binary operator to all elements of this mutable set, going right to left
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
def
remove(elem: A): Boolean
Removes an element from this set
def
repr: JSetWrapper[A]
The collection of type mutable set underlying this TraversableLike
object
def
result(): JSetWrapper[A]
The result when this set is used as a builder
def
retain(p: (A) ⇒ Boolean): Unit
Removes all elements from the set for which do not satisfy a predicate
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
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
def
size: Int
The size of this mutable set
def
sizeHint(size: Int): Unit
Gives a hint how many elements are expected to be added
when the next result
is called
def
slice(from: Int, until: Int): JSetWrapper[A]
Selects an interval of elements
def
sliding[B >: A](size: Int, step: Int): Iterator[JSetWrapper[A]]
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
def
span(p: (A) ⇒ Boolean): (JSetWrapper[A], JSetWrapper[A])
Spits this mutable set into a prefix/suffix pair according to a predicate
def
splitAt(n: Int): (JSetWrapper[A], JSetWrapper[A])
Splits this mutable set into two at a given position
def
stringPrefix: String
Defines the prefix of this object's toString
representation
def
subsetOf(that: Set[A]): Boolean
Tests whether this set is a subset of another set
def
sum: Int
[use case] Sums up the elements of this collection
def
sum[B >: A](num: Numeric[B]): B
Sums up the elements of this collection
def
tail: JSetWrapper[A]
Selects all elements except the first
def
take(n: Int): JSetWrapper[A]
Selects first n elements
def
takeRight(n: Int): JSetWrapper[A]
Selects last n elements
def
takeWhile(p: (A) ⇒ Boolean): JSetWrapper[A]
Takes longest prefix of elements that satisfy a predicate
def
toArray: Array[A]
[use case] Converts this mutable set to an array
def
toArray[B >: A](arg0: ClassManifest[B]): Array[B]
Converts this mutable set to an array
def
toIndexedSeq[B >: A]: IndexedSeq[B]
Converts this mutable set to an indexed sequence
def
toIterable: Iterable[A]
Converts this mutable set to an iterable collection
def
toList: List[A]
Converts this mutable set to a list
def
toMap[T, U](ev: <:<[A, (T, U)]): Map[T, U]
Converts this mutable set to a map
def
toSeq: Seq[A]
Converts this mutable set to a sequence
def
toSet[B >: A]: Set[B]
Converts this mutable set to a set
def
toStream: Stream[A]
Converts this mutable set to a stream
def
toString(): String
Converts this mutable set to a string
def
transpose[B](asTraversable: (A) ⇒ Traversable[B]): Set[Set[B]]
Transposes this mutable set of traversable collections into
val
underlying: Set[A]
def
union(that: Set[A]): JSetWrapper[A]
Computes the union between of set and another set
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
def
update(elem: A, included: Boolean): Unit
Updates the presence of a single element in this set
def
view(from: Int, until: Int): IterableView[A, JSetWrapper[A]]
Creates a non-strict view of a slice of this mutable set
def
view: IterableView[A, JSetWrapper[A]]
Creates a non-strict view of this mutable set
def
withFilter(p: (A) ⇒ Boolean): WithFilter
Creates a non-strict filter of this mutable set
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
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
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
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
def
zipWithIndex: Set[(A, Int)]
[use case] Zips this mutable set with its indices
def
zipWithIndex[A1 >: A, That](bf: CanBuildFrom[JSetWrapper[A], (A1, Int), That]): That
Zips this mutable set with its indices
def
|(that: Set[A]): JSetWrapper[A]
Computes the union between this set and another set
Instance constructors
-
new
JSetWrapper(underlying: Set[A])