object Map extends Serializable
- Alphabetic
- By Inheritance
- Map
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
additiveMonoid[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B], arg2: AdditiveMonoid[B]): AdditiveMonoid[Map[A, B]]
Provide an AdditiveMonoid[Map[A, B]].
Provide an AdditiveMonoid[Map[A, B]].
The maps are combined key-by-key, using + to merge values if necessary.
-
def
apply[A, B](pairs: (A, B)*)(implicit arg0: ClassTag[A], arg1: ClassTag[B]): Map[A, B]
Create a new literal map.
Create a new literal map.
Note that this method will box the given items. Unless you already have a sequence of tuples, another constructor may require fewer allocations.
Example: Map(1 -> "cat", 2 -> "dog", 3 -> "fish")
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
empty[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B]): Map[A, B]
Create an empty Map.
Create an empty Map.
Example: Map.empty[Int, String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
eqv[A, B]: Eq[Map[A, B]]
Provide an Eq[Map[A, B]] instance.
Provide an Eq[Map[A, B]] instance.
Since Maps are so reliant on equality, and use hash codes internally, the default equality is used to compare elements.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromArrays[A, B](ks: Array[A], vs: Array[B])(implicit arg0: ClassTag[A], arg1: ClassTag[B]): Map[A, B]
Create a map from an array of keys and another array of values.
Create a map from an array of keys and another array of values.
Example: Map(Array(1,2,3), Array("cat", "dog", "fish"))
-
def
fromIterable[A, B](pairs: Iterable[(A, B)])(implicit arg0: ClassTag[A], arg1: ClassTag[B]): Map[A, B]
Create a map from an iterable of tuples.
Create a map from an iterable of tuples.
Note that this method will box the given items. Unless you already have a sequence of tuples, another constructor may require fewer allocations.
Example: Map.fromIterable(List((1, "cat"), (2, "dog"), (3, "fish")))
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
monoid[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B], arg2: Monoid[B]): Monoid[Map[A, B]]
Provide a Monoid[Map[A, B]].
Provide a Monoid[Map[A, B]].
The maps are combined key-by-key, using |+| to merge values if necessary.
-
implicit
def
multiplicativeMonoid[A, B](implicit arg0: ClassTag[A], arg1: ClassTag[B], arg2: MultiplicativeMonoid[B]): MultiplicativeMonoid[Map[A, B]]
Provide an MultiplicativeMonoid[Map[A, B]].
Provide an MultiplicativeMonoid[Map[A, B]].
The maps are combined key-by-key, using * to merge values if necessary.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
ofSize[A, B](n: Int)(implicit arg0: ClassTag[A], arg1: ClassTag[B]): Map[A, B]
Create a Map that can hold n unique keys without resizing itself.
Create a Map that can hold n unique keys without resizing itself.
Note that the internal representation will allocate more space than requested to satisfy the requirements of internal alignment. Map uses arrays whose lengths are powers of two, and needs at least 33% of the map free to enable good hashing performance.
Example: Map.ofSize[Int, String](100).
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )