scala.tools.nsc.util

WeakHashSet

class WeakHashSet[T <: AnyRef] extends AbstractFunction1[T, Boolean]

A bare-bones implementation of a mutable Set that uses weak references to hold the elements.

This implementation offers only add/remove/test operations, therefore it does not fulfill the contract of Scala collection sets.

Source
WeakHashSet.scala
Linear Supertypes
AbstractFunction1[T, Boolean], (T) ⇒ Boolean, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WeakHashSet
  2. AbstractFunction1
  3. Function1
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WeakHashSet()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def +=(elem: T): WeakHashSet.this.type

    Add the given element to this set.

  6. def -=(elem: T): WeakHashSet.this.type

    Remove the given element from this set.

  7. def ->[B](y: B): (WeakHashSet[T], B)

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to ArrowAssoc[WeakHashSet[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. def andThen[A](g: (Boolean) ⇒ A): (T) ⇒ A

    Definition Classes
    Function1
  11. def apply(elem: T): Boolean

    Does the given element belong to this set?

    Does the given element belong to this set?

    Definition Classes
    WeakHashSet → Function1
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clear(): Unit

    Remove all elements in this set.

  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def compose[A](g: (A) ⇒ T): (A) ⇒ Boolean

    Definition Classes
    Function1
  16. def contains(elem: T): Boolean

    Does the given element belong to this set?

  17. def ensuring(cond: (WeakHashSet[T]) ⇒ Boolean, msg: ⇒ Any): WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to Ensuring[WeakHashSet[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (WeakHashSet[T]) ⇒ Boolean): WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to Ensuring[WeakHashSet[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to Ensuring[WeakHashSet[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to Ensuring[WeakHashSet[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. val self: Any

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  32. val self: Any

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  33. def size: Int

    Return the number of elements in this set, including reclaimed elements.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def [B](y: B): (WeakHashSet[T], B)

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to ArrowAssoc[WeakHashSet[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to ArrowAssoc[WeakHashSet[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: WeakHashSet[T]

    Implicit information
    This member is added by an implicit conversion from WeakHashSet[T] to Ensuring[WeakHashSet[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AbstractFunction1[T, Boolean]

Inherited from (T) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from WeakHashSet[T] to StringFormat

Inherited by implicit conversion any2stringadd from WeakHashSet[T] to StringAdd

Inherited by implicit conversion any2ArrowAssoc from WeakHashSet[T] to ArrowAssoc[WeakHashSet[T]]

Inherited by implicit conversion any2Ensuring from WeakHashSet[T] to Ensuring[WeakHashSet[T]]