package collection
Provides new types of collections and utility classes and methods for handling and extending existing ones.
- Alphabetic
- By Inheritance
- collection
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
class
DeboxMap[A, B] extends (A) ⇒ B with Serializable
An hash map optimized for performance, not incurring in boxing while storing primitive values.
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
-
class
InvalidSizes extends Exception
Exception thrown when a
DeboxMapfactory is called with a different number of keys and values. -
class
MapOverflow extends Exception
Exception thrown when a
DeboxMapfactory is called requiring an invalid preallocated size. -
class
NotFound extends Exception
Exception thrown when trying to access a non-existent key in a
DeboxMap. -
case class
Trie[K, V](value: Option[V] = None, nodes: Map[K, Trie[K, V]] = Map[K, Trie[K, V]]()) extends Product with Serializable
An immutable implementation of a Trie (https://en.wikipedia.org/wiki/Trie).
An immutable implementation of a Trie (https://en.wikipedia.org/wiki/Trie).
- K
the type param of keys in the nodes
- V
the type param of values stored in the trie
- value
the optional value of this node
- nodes
the descendants of this node
- class Typed[A] extends AnyRef
-
class
TypedMap[T] extends AnyRef
Typed map that associates types with values.
Typed map that associates types with values. Based on http://stackoverflow.com/a/7337610/4243494
-
class
HMap[KeyType[_] <: HMapKey[_]] extends AnyRef
A map containing keys of heterogeneous values.
A map containing keys of heterogeneous values. The keys in this map must implement
HMapKey[V], whereVis the type of its associated key.- KeyType
the type of keys used in this map
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version
-
class
HMapKey[V] extends AnyRef
A key of an
HMap.A key of an
HMap.- V
the type of the value associated with this key
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version