|
Scala
1.2.0.1 |
|||
java.util.Set
.
Method Summary | |
def +=(elem: A): Unit
This method adds a new element to the set. |
|
def -=(elem: A): Unit
-= can be used to remove a single element from
a set.
|
|
def clear: Unit
Removes all elements from the set. |
|
override
|
def clone(): Set[A]
Return a clone of this set. |
def contains(elem: A): Boolean
Checks if this set contains element elem .
|
|
def elements: Iterator[A]
Creates a new iterator over all elements contained in this object. |
|
override
|
def isEmpty: Boolean
Checks if this set is empty. |
def size: Int
Returns the number of elements in this set. |
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/Iterable-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/collection/Set-class |
apply, equals, subsetOf, toList, toString |
Methods inherited from scala/collection/mutable/Set-class |
++=, ++=, --=, --=, <<, excl, filter, hashCode, incl, intersect, update |
Method Detail |
def size: Int
override def isEmpty: Boolean
def contains(elem: A): Boolean
elem
.
elem
-
the element to check for membership.
elem
is contained in this set.
def elements: Iterator[A]
def +=(elem: A): Unit
def -=(elem: A): Unit
-=
can be used to remove a single element from
a set.
def clear: Unit
override def clone(): Set[A]
|
Scala
1.2.0.1 |
|||