|
Scala 2.3.2
|
abstract
trait
Set
[A]
extends
java.lang.Object
with
scala.collection.Set[A]
with
scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]]
with
scala.ScalaObject
Def Summary | |
def
+
(elem1: A, elem2: A, elems: A*)
: scala.collection.mutable.Set[A]
Add two or more elements to this set. |
|
def
+
(elem: A)
: scala.collection.mutable.Set[A]
Add a new element to the set. |
|
def
++
(elems: scala.Iterable[A])
: scala.collection.mutable.Set[A]
Add all the elements provided by an iterator of the iterable object elems to the set.
|
|
def
++
(elems: scala.Iterator[A])
: scala.collection.mutable.Set[A]
Add all the elements provided by an iterator elems to the set.
|
|
def
++=
(elems: scala.Iterable[A])
: scala.Unit
Add all the elements provided by an iterator of the iterable object that to the set.
|
|
def
++=
(elems: scala.Iterator[A])
: scala.Unit
Add all the elements provided by an iterator elems to the set.
|
|
def
+=
(elem1: A, elem2: A, elems: A*)
: scala.Unit
Add two or more elements to this set. |
|
abstract
|
def
+=
(elem: A)
: scala.Unit
Add a new element to the set. |
def
-
(elem1: A, elem2: A, elems: A*)
: scala.collection.mutable.Set[A]
Remove two or more elements from this set. |
|
def
-
(elem: A)
: scala.collection.mutable.Set[A]
Remove a new element from the set. |
|
def
--
(elems: scala.Iterable[A])
: scala.collection.mutable.Set[A]
Remove all the elements provided by an iterator of the iterable object elems from the set.
|
|
def
--
(elems: scala.Iterator[A])
: scala.collection.mutable.Set[A]
Remove all the elements provided by an iterator elems from the set.
|
|
def
--=
(elems: scala.Iterable[A])
: scala.Unit
Remove all the elements provided by an iterator of the iterable object elems from the set.
|
|
def
--=
(elems: scala.Iterator[A])
: scala.Unit
Remove all the elements provided by an iterator elems from the set.
|
|
def
-=
(elem1: A, elem2: A, elems: A*)
: scala.Unit
Remove two or more elements from this set. |
|
abstract
|
def
-=
(elem: A)
: scala.Unit
Removes a single element from a set. |
def
<<
(cmd: scala.collection.mutable.Message[A])
: scala.Unit
Send a message to this scriptable object. |
|
def
clear
: scala.Unit
Removes all elements from the set. After this operation is completed, the set will be empty. |
|
override
|
def
clone
: scala.collection.mutable.Set[A]
Return a clone of this set. |
def
excl
(elems: A*)
: scala.Unit
excl removes many elements from the set.
|
|
override
|
def
filter
(p: (A) => scala.Boolean)
: scala.collection.mutable.Set[A]
Method filter removes all elements from the set for
which the predicate p yields the value false .
|
def
incl
(elems: A*)
: scala.Unit
incl can be used to add many elements to the set
at the same time.
|
|
def
intersect
(that: scala.collection.mutable.Set[A])
: scala.Unit
This method computes an intersection with set that .
It removes all the elements that are not present in that .
|
|
def
retain
(p: (A) => scala.Boolean)
: scala.Unit
Method retain removes all elements from the set for
which the predicate
|
|
def
update
(elem: A, included: scala.Boolean)
: scala.Unit
This method allows one to add or remove an element elem
from this set depending on the value of parameter included .
Typically, one would use the following syntax:
set(elem) = true |
Def inherited from scala.collection.Set[A] | |
apply , contains, equals, hashCode, isEmpty, size, subsetOf, toString |
Def inherited from scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]] | |
<< |
Def Detail |
def
+
(elem1: A, elem2: A, elems: A*): scala.collection.mutable.Set[A]
elem1 -
the first element.
kv2 -
the second element.
kvs -
the remaining elements.
def
+
(elem: A): scala.collection.mutable.Set[A]
elem -
the element to be added
def
++
(elems: scala.Iterable[A]): scala.collection.mutable.Set[A]
elems
to the set.elems -
the iterable object containing the elements to be added
def
++
(elems: scala.Iterator[A]): scala.collection.mutable.Set[A]
elems
to the set.elems -
the iterator containing the elements to be added
def
++=
(elems: scala.Iterable[A]): scala.Unit
that
to the set.elems -
the iterable object containing the elements to be added
def
++=
(elems: scala.Iterator[A]): scala.Unit
elems
to the set.elems -
the iterator containing the elements to be added
def
+=
(elem1: A, elem2: A, elems: A*): scala.Unit
elem1 -
the first element.
kv2 -
the second element.
kvs -
the remaining elements.
abstract
def
+=
(elem: A): scala.Unit
elem -
the element to be added
def
-
(elem1: A, elem2: A, elems: A*): scala.collection.mutable.Set[A]
elem1 -
the first element.
elem2 -
the second element.
elems -
the remaining elements.
def
-
(elem: A): scala.collection.mutable.Set[A]
elem -
the element to be removed
def
--
(elems: scala.Iterable[A]): scala.collection.mutable.Set[A]
elems
from the set.elems -
An iterable object containing the elements to remove from the set.
def
--
(elems: scala.Iterator[A]): scala.collection.mutable.Set[A]
elems
from the set.elems -
An iterator containing the elements to remove from the set.
def
--=
(elems: scala.Iterable[A]): scala.Unit
elems
from the set.
def
--=
(elems: scala.Iterator[A]): scala.Unit
elems
from the set.
def
-=
(elem1: A, elem2: A, elems: A*): scala.Unit
elem1 -
the first element.
elem2 -
the second element.
elems -
the remaining elements.
abstract
def
-=
(elem: A): scala.Unit
elem -
The element to be removed.
def
<<
(cmd: scala.collection.mutable.Message[A]): scala.Unit
cmd -
the message to send.
<code>Predef.UnsupportedOperationException</code> -
if the message was not understood.
def
clear
: scala.Unit
override
def
clone
: scala.collection.mutable.Set[A]
def
excl
(elems: A*): scala.Unit
excl
removes many elements from the set.
override
def
filter
(p: (A) => scala.Boolean): scala.collection.mutable.Set[A]
filter
removes all elements from the set for
which the predicate p
yields the value false
.
def
incl
(elems: A*): scala.Unit
incl
can be used to add many elements to the set
at the same time.++=
instead
def
intersect
(that: scala.collection.mutable.Set[A]): scala.Unit
that
.
It removes all the elements that are not present in that
.that -
the set to intersect with.
def
retain
(p: (A) => scala.Boolean): scala.Unit
retain removes all elements from the set for
which the predicate p
yields the value false
.
def
update
(elem: A, included: scala.Boolean): scala.Unit
elem
from this set depending on the value of parameter included
.
Typically, one would use the following syntax:
set(elem) = true