dotty.tools.dotc.util

HashSet

Related Doc: package util

class HashSet[T >: Null <: AnyRef] extends Set[T]

A hash set that allows some privileged protected access to its internals

Linear Supertypes
Set[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HashSet
  2. Set
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HashSet(initialCapacity: Int, loadFactor: Float = 0.25f)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def addEntries(xs: TraversableOnce[T]): Unit

    Add all entries in xs to set

  5. def addEntry(x: T): Unit

    Add entry x to set

    Add entry x to set

    Definition Classes
    HashSetSet
  6. def addEntryAfterScan(x: T): T

    Privileged access: Add entry x at the last position where an unsuccsessful findEntryByHash or nextEntryByhash operation returned.

    Privileged access: Add entry x at the last position where an unsuccsessful findEntryByHash or nextEntryByhash operation returned. Needs to immediately follow a findEntryByhash or nextEntryByHash operation that was unsucessful, i.e. that returned null.

    Attributes
    protected
  7. def apply(x: T): Boolean

    Definition Classes
    Set
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clear(): Unit

    Remove all elements from this set and set back to initial configuration

    Remove all elements from this set and set back to initial configuration

    Definition Classes
    HashSetSet
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def contains(x: T): Boolean

    Definition Classes
    Set
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findEntry(x: T): T

    The entry in the set such that x equals entry, or else null.

    The entry in the set such that x equals entry, or else null.

    Definition Classes
    HashSetSet
  16. def findEntryByHash(hashCode: Int): T

    Privileged access: Find first entry with given hashcode

    Privileged access: Find first entry with given hashcode

    Attributes
    protected
  17. def findEntryOrUpdate(x: T): T

    Find entry such that x equals entry.

    Find entry such that x equals entry. If it exists, return it. If not, enter x in set and return x.

  18. def foreach[U](f: (T) ⇒ U): Unit

    Definition Classes
    Set
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hash(x: T): Int

    Hashcode, can be overridden

  21. def hashCode(): Int

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

    Definition Classes
    Any
  23. def iterator: Iterator[T]

    The iterator of all elements in the set

    The iterator of all elements in the set

    Definition Classes
    HashSetSet
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def nextEntryByHash(hashCode: Int): T

    Privileged access: Find next entry with given hashcode.

    Privileged access: Find next entry with given hashcode. Needs to immediately follow a findEntryByhash or nextEntryByHash operation.

    Attributes
    protected
  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. def size: Int

    The number of elements in the set

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

    Definition Classes
    AnyRef
  30. def toList: List[T]

    Definition Classes
    Set
  31. def toString(): String

    Definition Classes
    HashSet → AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Set[T]

Inherited from AnyRef

Inherited from Any

Ungrouped