Packages

final class DeboxMap[A, B] extends (A) ⇒ B with Serializable

An hash map optimized for performance, not incurring in boxing while storing primitive values.

A

the type of the keys

B

the type of the values

Linear Supertypes
Serializable, Serializable, (A) ⇒ B, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeboxMap
  2. Serializable
  3. Serializable
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeboxMap(ks: Array[A], vs: Array[B], bs: Array[Byte], n: Int, u: Int)(implicit arg0: ClassTag[A], arg1: ClassTag[B])

    Attributes
    protected[eu.shiftforward.apso]

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 andThen[A](g: (B) ⇒ A): (A) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def apply(key: A): B

    Returns the value associated with a key.

    Returns the value associated with a key. If the key does not exist, a NotFound exception is thrown.

    key

    the key to lookup

    returns

    the value associated with the given key.

    Definition Classes
    DeboxMap → Function1
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. var buckets: Array[Byte]
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def compose[A](g: (A) ⇒ A): (A) ⇒ B
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def contains(key: A): Boolean

    Tests if this map contains a given key.

    Tests if this map contains a given key.

    key

    the key to test for membership

    returns

    true if the map contains the given key, false otherwise.

  11. final def copy: DeboxMap[A, B]

    Returns a copy of this map.

    Returns a copy of this map.

    returns

    a copy of this map.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def equals(that: Any): Boolean
    Definition Classes
    DeboxMap → AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def foreach(f: (A, B) ⇒ Unit): Unit

    Applies a function f to all entries of this map.

    Applies a function f to all entries of this map.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

  16. final def get(key: A): Option[B]

    Returns the value associated with a key or None if the key does not exist.

    Returns the value associated with a key or None if the key does not exist.

    key

    the key to lookup

    returns

    the value associated with the given key wrapped in a Some if this map contains the key, None otherwise.

  17. def getBuckets: Array[Byte]
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def getOrElse(key: A, default: ⇒ B): B

    Returns the value associated with a key or a default value if the key does not exist.

    Returns the value associated with a key or a default value if the key does not exist.

    key

    the key to lookup

    default

    the value to return if this map does not contain the given key

    returns

    the value associated with the given key if this map contains the key, default otherwise.

  20. final def getOrElseUpdate(key: A, default: ⇒ B): B

    If given key is already in this map, returns associated value.

    If given key is already in this map, returns associated value. Otherwise, stores the given default value with key in map and returns that value.

    key

    the key to lookup

    default

    the value to associate with key, if key is previously unbound.

    returns

    the value associated with the given key if this map contains the key, default otherwise.

  21. final def hash(item: A, _mask: Int, _keys: Array[A], _buckets: Array[Byte]): Int
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. var keys: Array[A]
  25. var len: Int
  26. final def length: Int

    Returns the number of entries in this map.

    Returns the number of entries in this map.

    returns

    the number of entries in this map.

  27. var limit: Int
  28. final def map[C](f: (A, B) ⇒ C): List[C]

    Builds a new list by applying a function to all entries of this map.

    Builds a new list by applying a function to all entries of this map.

    C

    the type of the elements in the returned list

    f

    the function to apply to each element

    returns

    a new list resulting from applying the given function f to each element of this map and collecting the results.

  29. var mask: Int
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def remove(key: A): Unit

    Removes a key from this map.

    Removes a key from this map. If the key does not exist, this method does nothing.

    key

    the key to remove

  34. final def resize(): Unit
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  37. final def update(key: A, value: B): Unit

    Updates the value of a key.

    Updates the value of a key. If the key does not exist, it is added to the map.

    key

    the key to update

    value

    the value to assign to the given key

  38. var used: Int
  39. var vals: Array[B]
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from (A) ⇒ B

Inherited from AnyRef

Inherited from Any

Ungrouped