LongMap

scala.collection.mutable.LongMap
See theLongMap companion class
object LongMap

Attributes

Companion
class
Source
LongMap.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
LongMap.type

Members list

Type members

Classlikes

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

A builder for instances of LongMap.

A builder for instances of LongMap.

This builder can be reused to create multiple instances.

Attributes

Source
LongMap.scala
Supertypes
trait ReusableBuilder[(Long, V), LongMap[V]]
trait Builder[(Long, V), LongMap[V]]
trait Growable[(Long, V)]
trait Clearable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

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

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

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

Attributes

Source
LongMap.scala
def empty[V]: LongMap[V]

Creates a new empty LongMap.

Creates a new empty LongMap.

Attributes

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

Creates a new LongMap from an existing source collection.

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

Type parameters

A

the type of the collection’s elements

Value parameters

source

Source collection

Attributes

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.

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

Attributes

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

Creates a new LongMap from keys and values.

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

Attributes

Source
LongMap.scala

Attributes

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

Creates a new empty LongMap with the supplied default

Creates a new empty LongMap with the supplied default

Attributes

Source
LongMap.scala

Implicits

Implicits

implicit def buildFromLongMap[V]: BuildFrom[LongMap[_], (Long, V), LongMap[V]]

Attributes

Source
LongMap.scala
implicit def iterableFactory[V]: Factory[(Long, V), LongMap[V]]

Attributes

Source
LongMap.scala
implicit def toBuildFrom[V](factory: LongMap.type): BuildFrom[Any, (Long, V), LongMap[V]]

Attributes

Source
LongMap.scala
implicit def toFactory[V](dummy: LongMap.type): Factory[(Long, V), LongMap[V]]

Attributes

Source
LongMap.scala