in scala/collection
trait SetProxy

trait SetProxy[A]()
extends Set[A]
with ScalaObject
with IterableProxy[A]
Implementing classes or objects:
trait SetProxy[A]() in scala/collection/mutable

This is a simple wrapper class for scala.collection.Set. It is most useful for assembling customized set abstractions dynamically using object composition and forwarding.
Author:
Matthias Zenger
Version:
1.0, 21/07/2003

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.
abstract def self: Set[A]
  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, ne, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
concat

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
getScalaType

Methods inherited from scala/collection/Set-class
apply

Method Detail

self

  abstract def self: Set[A]

size

  def size: Int
Returns the number of elements in this set.
Returns:
number of set elements.

isEmpty

  override def isEmpty: Boolean
Checks if this set is empty.
Returns:
true, iff there is no element in the set.

contains

  def contains(elem: A): Boolean
Checks if this set contains element elem.
Parameters:
elem - the element to check for membership.
Returns:
true, iff elem is contained in this set.

subsetOf

  override def subsetOf(that: Set[A]): Boolean
Checks if this set is a subset of set that.
Parameters:
that - another set.
Returns:
true, iff the other set is a superset of this set.

foreach

  override def foreach(f: (A) => Unit): Unit
Apply a function f to all elements of this iterable object.
Parameters:
f - a function that is applied to every element.

exists

  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.
Parameters:
p - the predicate
Returns:
true, iff the predicate yields true for at least one element.

toList

  override def toList: List[A]
Returns the elements of this set as a list.
Returns:
a list containing all set elements.