|
Scala
1.3.0.9 |
|||
scala.collection.mutable.Set.
It is most useful for assembling customized set abstractions
dynamically using object composition and forwarding.
| Method Summary | |
override
|
def ++=(that: Iterable[A]): Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
override
|
def ++=(it: Iterator[A]): Unit
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
def +=(elem: A): Unit
This method adds a new element to the set. |
|
override
|
def --=(that: Iterable[A]): Unit
This method removes all the elements provided by the the iterable object that from the set.
|
override
|
def --=(it: Iterator[A]): Unit
This method removes all the elements provided by an iterator it from the set.
|
def -=(elem: A): Unit
-= can be used to remove a single element from
a set.
|
|
override
|
def <<(cmd: Message[A]): Unit
Send a message to this scriptable object. |
def clear: Unit
Removes all elements from the set. |
|
override
|
def clone(): Set[A]
Return a clone of this set. |
override
|
def excl(elems: A*): Unit
excl removes many elements from the set.
|
override
|
def filter(p: (A) => Boolean): Unit
Method filter removes all elements from the set for
which the predicate p yields the value false.
|
override
|
def incl(elems: A*): Unit
incl can be used to add many elements to the set
at the same time.
|
override
|
def intersect(that: Set[A]): Unit
This method computes an intersection with set that.
|
override
|
def update(elem: A, included: Boolean): Unit
This method allows one to add or remove an element elem
from this set depending on the value of parameter included.
|
| Methods inherited from java/lang/Object-class |
| eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait |
| Methods inherited from scala/Any-class |
| !=, ==, asInstanceOf, isInstanceOf, match |
| Methods inherited from scala/IterableProxy-class |
| /:, :\, elements, find, foldLeft, foldRight, forall, sameElements |
| Methods inherited from scala/Proxy-class |
| equals, hashCode, toString |
| Methods inherited from scala/ScalaObject-class |
| getType |
| Methods inherited from scala/collection/Set-class |
| apply |
| Methods inherited from scala/collection/SetProxy-class |
| contains, exists, foreach, isEmpty, size, subsetOf, toList |
| Method Detail |
override def update(elem: A, included: Boolean): Unit
elem
from this set depending on the value of parameter included.
Typically, one would use the following syntax:
set(elem) = true
def +=(elem: A): Unit
override def ++=(that: Iterable[A]): Unit
that to the set.
override def ++=(it: Iterator[A]): Unit
that to the set.
override def incl(elems: A*): Unit
incl can be used to add many elements to the set
at the same time.
def -=(elem: A): Unit
-= can be used to remove a single element from
a set.
override def --=(that: Iterable[A]): Unit
that from the set.
override def --=(it: Iterator[A]): Unit
it from the set.
override def excl(elems: A*): Unit
excl removes many elements from the set.
override def intersect(that: Set[A]): Unit
that.
It removes all the elements that are not present in that.
def clear: Unit
override def filter(p: (A) => Boolean): Unit
filter removes all elements from the set for
which the predicate p yields the value false.
override def <<(cmd: Message[A]): Unit
cmd -
the message to send.
override def clone(): Set[A]
|
Scala
1.3.0.9 |
|||