|
|
Scala 2.3.1
|
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
scala.collection.Set as well as for add,
remove, and clear.| Def Summary | |
def
++=
(it: scala.Iterator[A])
: scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
|
def
++=
(that: scala.Iterable[A])
: scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
|
abstract
|
def
+=
(elem: A)
: scala.Unit
This method adds a new element to the set. |
def
--=
(it: scala.Iterator[A])
: scala.Unit
This method removes all the elements provided by an iterator it from the set.
|
|
def
--=
(that: scala.Iterable[A])
: scala.Unit
This method removes all the elements provided by the the iterable object that from the set.
|
|
abstract
|
def
-=
(elem: A)
: scala.Unit
-= can be used to remove a single element from
a set.
|
def
<<
(cmd: scala.collection.mutable.Message[A])
: scala.Unit
Send a message to this scriptable object. |
|
abstract
|
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.
|
|
def
filter
(p: (A) => scala.Boolean)
: scala.Unit
Method filter removes all elements from the set for
which the predicate p yields the value false.
|
|
override
|
def
hashCode
: scala.Int
The hashCode method always yields an error, since it is
not safe to use mutable stacks as keys in hash tables.
|
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
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, isEmpty, size, subsetOf, toString |
| Def inherited from scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]] | |
| << |
| Def Detail |
def
++=
(it: scala.Iterator[A]): scala.Unit
that to the set.it - ...
def
++=
(that: scala.Iterable[A]): scala.Unit
that to the set.that - ...
abstract
def
+=
(elem: A): scala.Unit
elem - ...
def
--=
(it: scala.Iterator[A]): scala.Unit
it from the set.
def
--=
(that: scala.Iterable[A]): scala.Unit
that from the set.
abstract
def
-=
(elem: A): scala.Unit
-= can be used to remove a single element from
a set.
def
<<
(cmd: scala.collection.mutable.Message[A]): scala.Unit
cmd - the message to send.
<code>Predef.UnsupportedOperationException</code> - if the message was not understood.
abstract
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.
def
filter
(p: (A) => scala.Boolean): scala.Unit
filter removes all elements from the set for
which the predicate p yields the value false.
override
def
hashCode
: scala.Int
hashCode method always yields an error, since it is
not safe to use mutable stacks as keys in hash tables.
def
incl
(elems: A*): scala.Unit
incl can be used to add many elements to the set
at the same time.elems - ...
def
intersect
(that: scala.collection.mutable.Set[A]): scala.Unit
that.
It removes all the elements that are not present in that.that - ...
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
elem - ...
included - ...