|
Scala 2
|
class
Set
[ A ]
extends
java.lang.Object with
Set with
Scriptable with
ScalaObjectscala.collection.Set
as well as for add
,
remove
, and clear
.Def Summary | |
def
++=
( it : Iterator )
: scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
|
def
++=
( that : Iterable )
: scala.Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
|
def
+=
( elem : A )
: scala.Unit
This method adds a new element to the set. |
|
def
--=
( it : Iterator )
: scala.Unit
This method removes all the elements provided by an iterator it from the set.
|
|
def
--=
( that : Iterable )
: scala.Unit
This method removes all the elements provided by the the iterable object that from the set.
|
|
def
-=
( elem : A )
: scala.Unit
-= can be used to remove a single element from
a set.
|
|
def
<<
( cmd : Message )
: 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
: Set
Return a clone of this set. |
def
excl
( elems : scala.<repeated> )
: scala.Unit
excl removes many elements from the set.
|
|
def
filter
( p : Function1 )
: 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 : scala.<repeated> )
: scala.Unit
incl can be used to add many elements to the set
at the same time.
|
|
def
intersect
( that : Set )
: 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 Detail |
def
++=
( it : Iterator ) : scala.Unit
that
to the set.def
++=
( that : Iterable ) : scala.Unit
that
to the set.def
+=
( elem : A ) : scala.Unit
def
--=
( it : Iterator ) : scala.Unit
it
from the set.def
--=
( that : Iterable ) : scala.Unit
that
from the set.def
-=
( elem : A ) : scala.Unit
-=
can be used to remove a single element from
a set.def
<<
( cmd : Message ) : scala.Unit
def
clear
: scala.Unit
def
clone
: Set
def
excl
( elems : scala.<repeated> ) : scala.Unit
excl
removes many elements from the set.def
filter
( p : Function1 ) : scala.Unit
filter
removes all elements from the set for
which the predicate p
yields the value false
.def
hashCode
: scala.Int
def
incl
( elems : scala.<repeated> ) : scala.Unit
incl
can be used to add many elements to the set
at the same time.def
intersect
( that : Set ) : scala.Unit
that
.
It removes all the elements that are not present in 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