LongMap

object LongMap
Companion
class
Source
LongMap.scala
class Object
trait Matchable
class Any

Type members

Classlikes

final class LongMapBuilder[V] extends ReusableBuilder[(Long, V), LongMap[V]]

A builder for instances of LongMap.

This builder can be reused to create multiple instances.

Value members

Concrete methods

def apply[V](elems: (Long, V)*): LongMap[V]

Creates a new LongMap with zero or more key/value pairs.

def empty[V]: LongMap[V]

Creates a new empty LongMap.

def from[V](source: IterableOnce[(Long, V)]): LongMap[V]

Creates a new LongMap from an existing source collection. A source collection which is already a LongMap gets cloned.

Type Params
A

the type of the collection’s elements

Value Params
source

Source collection

Returns

a new LongMap with the elements of source

Source
LongMap.scala
def fromZip[V](keys: Array[Long], values: Array[V]): LongMap[V]

Creates a new LongMap from arrays of keys and values. Equivalent to but more efficient than LongMap((keys zip values): _*).

def fromZip[V](keys: Iterable[Long], values: Iterable[V]): LongMap[V]

Creates a new LongMap from keys and values. Equivalent to but more efficient than LongMap((keys zip values): _*).

def withDefault[V](default: Long => V): LongMap[V]

Creates a new empty LongMap with the supplied default

Implicits

Implicits

implicit def buildFromLongMap[V]: BuildFrom[LongMap[_], (Long, V), LongMap[V]]
implicit def iterableFactory[V]: Factory[(Long, V), LongMap[V]]
implicit def toBuildFrom[V](factory: LongMap): BuildFrom[Any, (Long, V), LongMap[V]]
implicit def toFactory[V](dummy: LongMap): Factory[(Long, V), LongMap[V]]