Class/Object

eu.shiftforward.apso.collection

DeboxMap

Related Docs: object DeboxMap | package collection

Permalink

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])

    Permalink

    Attributes
    protected[eu.shiftforward.apso]

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 andThen[A](g: (B) ⇒ A): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def apply(key: A): B

    Permalink

    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

    Permalink
    Definition Classes
    Any
  7. var buckets: Array[Byte]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def contains(key: A): Boolean

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  13. final def equals(that: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def foreach(f: (A, B) ⇒ Unit): Unit

    Permalink

    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]

    Permalink

    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]

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def getOrElse(key: A, default: ⇒ B): B

    Permalink

    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

    Permalink

    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

    Permalink
  22. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  24. var keys: Array[A]

    Permalink
  25. var len: Int

    Permalink
  26. final def length: Int

    Permalink

    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

    Permalink
  28. final def map[C](f: (A, B) ⇒ C): List[C]

    Permalink

    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

    Permalink
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. final def remove(key: A): Unit

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  37. final def update(key: A, value: B): Unit

    Permalink

    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

    Permalink
  39. var vals: Array[B]

    Permalink
  40. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from (A) ⇒ B

Inherited from AnyRef

Inherited from Any

Ungrouped