Trait

scala.collection.mutable

FlatHashTable

Related Doc: package mutable

Permalink

trait FlatHashTable[A] extends HashUtils[A]

An implementation class backing a HashSet.

This trait is used internally. It can be mixed in with various collections relying on hash table as an implementation.

Linear Supertypes
HashUtils[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlatHashTable
  2. HashUtils
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addElem(elem: A): Boolean

    Permalink

    Add elem if not yet in table.

    Add elem if not yet in table.

    returns

    Returns true if a new elem was added, false otherwise.

    Attributes
    protected
  5. def addEntry(newEntry: AnyRef): Boolean

    Permalink

    Add an entry (an elem converted to an entry via elemToEntry) if not yet in table.

    Add an entry (an elem converted to an entry via elemToEntry) if not yet in table.

    returns

    Returns true if a new elem was added, false otherwise.

    Attributes
    protected
  6. def alwaysInitSizeMap: Boolean

    Permalink
    Attributes
    protected
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def calcSizeMapSize(tableLength: Int): Int

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  9. def capacity(expectedSize: Int): Int

    Permalink
    Attributes
    protected
  10. def clearTable(): Unit

    Permalink
    Attributes
    protected
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def containsElem(elem: A): Boolean

    Permalink

    Checks whether an element is contained in the hash table.

    Checks whether an element is contained in the hash table.

    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  13. final def elemToEntry(elem: A): AnyRef

    Permalink

    Elems have type A, but we store AnyRef in the table.

    Elems have type A, but we store AnyRef in the table. Plus we need to deal with null elems, which need to be stored as NullSentinel

    Attributes
    protected
    Definition Classes
    HashUtils
  14. final def entryToElem(entry: AnyRef): A

    Permalink

    Does the inverse translation of elemToEntry

    Does the inverse translation of elemToEntry

    Attributes
    protected
    Definition Classes
    HashUtils
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def findEntry(elem: A): Option[A]

    Permalink

    Finds an entry in the hash table if such an element exists.

    Finds an entry in the hash table if such an element exists.

    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  19. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def improve(hcode: Int, seed: Int): Int

    Permalink
    Attributes
    protected
    Definition Classes
    HashUtils
  22. final def index(hcode: Int): Int

    Permalink
    Attributes
    protected
  23. def initWithContents(c: Contents[A]): Unit

    Permalink
    Attributes
    protected
  24. def initialSize: Int

    Permalink

    The initial size of the hash table.

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isSizeMapDefined: Boolean

    Permalink
    Attributes
    protected
  27. def iterator: Iterator[A]

    Permalink
    Attributes
    protected
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def nnSizeMapAdd(h: Int): Unit

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  30. def nnSizeMapRemove(h: Int): Unit

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  31. def nnSizeMapReset(tableLength: Int): Unit

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def randomSeed: Int

    Permalink
    Attributes
    protected
  35. def removeElem(elem: A): Boolean

    Permalink

    Removes an elem from the hash table returning true if the element was found (and thus removed) or false if it didn't exist.

    Removes an elem from the hash table returning true if the element was found (and thus removed) or false if it didn't exist.

    Attributes
    protected
  36. var seedvalue: Int

    Permalink
    Attributes
    protected
  37. final def sizeMapBucketBitSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    HashUtils
  38. final def sizeMapBucketSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    HashUtils
  39. def sizeMapDisable(): Unit

    Permalink
    Attributes
    protected
  40. def sizeMapInit(tableLength: Int): Unit

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  41. def sizeMapInitAndRebuild(): Unit

    Permalink
    Attributes
    protected
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  42. var sizemap: Array[Int]

    Permalink

    The array keeping track of number of elements in 32 element blocks.

    The array keeping track of number of elements in 32 element blocks.

    Attributes
    protected
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. var table: Array[AnyRef]

    Permalink

    The actual hash table.

    The actual hash table.

    Attributes
    protected
  45. var tableSize: Int

    Permalink

    The number of mappings contained in this hash table.

    The number of mappings contained in this hash table.

    Attributes
    protected
  46. def tableSizeSeed: Int

    Permalink
    Attributes
    protected
  47. var threshold: Int

    Permalink

    The next size value at which to resize (capacity * load factor).

    The next size value at which to resize (capacity * load factor).

    Attributes
    protected
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HashUtils[A]

Inherited from AnyRef

Inherited from Any

Ungrouped