|
Scala
1.2.0.1 |
|||
scala.collection.Set
.
It is most useful for assembling customized set abstractions
dynamically using object composition and forwarding.
Method Summary | |
def contains(elem: A): Boolean
Checks if this set contains element elem .
|
|
override
|
def exists(p: (A) => Boolean): Boolean
Apply a predicate p to all elements of this
iterable object and return true, iff there is at least one
element for which p yields true.
|
override
|
def foreach(f: (A) => Unit): Unit
Apply a function f to all elements of this
iterable object.
|
override
|
def isEmpty: Boolean
Checks if this set is empty. |
def size: Int
Returns the number of elements in this set. |
|
override
|
def subsetOf(that: Set[A]): Boolean
Checks if this set is a subset of set that .
|
override
|
def toList: List[A]
Returns the elements of this set as a list. |
Methods inherited from java/lang/Object-class |
clone, 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/collection/Set-class |
apply |
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.
override def subsetOf(that: Set[A]): Boolean
that
.
that
-
another set.
override def foreach(f: (A) => Unit): Unit
f
to all elements of this
iterable object.
f
-
a function that is applied to every element.
override def exists(p: (A) => Boolean): Boolean
p
to all elements of this
iterable object and return true, iff there is at least one
element for which p
yields true.
p
-
the predicate
override def toList: List[A]
|
Scala
1.2.0.1 |
|||