Class/Object

levsha.impl.internal.debox

IntStringMap

Related Docs: object IntStringMap | package debox

Permalink

final class IntStringMap extends AnyRef

Cropped copy of debox.Map. https://raw.githubusercontent.com/non/debox/master/src/main/scala/debox/Map.scala

Self Type
IntStringMap
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IntStringMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntStringMap(ks: Array[Int], vs: Array[String], bs: Array[Byte], n: Int, u: Int)

    Permalink
    Attributes
    protected[levsha.impl.internal.debox]

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. final def apply(key: Int): String

    Permalink

    Return the key's current value in the map, throwing an exception if the key is not found.

    Return the key's current value in the map, throwing an exception if the key is not found.

    On average, this is an O(1) operation; the (unlikely) worst-case is O(n).

  5. final def asInstanceOf[T0]: T0

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

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def grow(): Unit2[Int, String]

    Permalink

    Grow the underlying array to best accomodate the map's size.

    Grow the underlying array to best accomodate the map's size.

    To preserve hashing access speed, the map's size should never be more than 66% of the underlying array's size. When this size is reached, the map needs to be updated (using this method) to have a larger array.

    The underlying array's size must always be a multiple of 2, which means this method grows the array's size by 2x (or 4x if the map is very small). This doubling helps amortize the cost of resizing, since as the map gets larger growth will happen less frequently. This method returns a null of type Unit1[A] to trigger specialization without allocating an actual instance.

    Growing is an O(n) operation, where n is the map's size.

  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. var keys: Array[Int]

    Permalink
  16. var len: Int

    Permalink
  17. var limit: Int

    Permalink
  18. var mask: Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def update(key: Int, value: String): Unit

    Permalink

    This method stores associates value with key.

    This method stores associates value with key.

    If a previous value was associated with the key, it is overwritten.

    This method is usually invoked as map(key) = value, but can also be invoked as map.update(key, value).

    On average, this is an amortized O(1) operation; the worst-case is O(n), which will happen when the map needs to be resized.

  25. var used: Int

    Permalink
  26. var vals: Array[String]

    Permalink
  27. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped