Packages

object Hashing

Attributes
protected
Source
Hashing.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hashing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def computeHash(key: Any): Int
  2. def elemHashCode(key: Any): Int
  3. def improve(hcode: Int): Int
  4. def keepBits(bitmap: Int, keep: Int): Int

    Utility method to keep a subset of all bits in a given bitmap

    Utility method to keep a subset of all bits in a given bitmap

    Example bitmap (binary): 00000001000000010000000100000001 keep (binary): 1010 result (binary): 00000001000000000000000100000000

    bitmap

    the bitmap

    keep

    a bitmask containing which bits to keep

    returns

    the original bitmap with all bits where keep is not 1 set to 0