-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
SeqMap.scala
38 lines (34 loc) · 1.07 KB
/
SeqMap.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala
package collection
package mutable
/**
* A generic trait for ordered mutable maps. Concrete classes have to provide
* functionality for the abstract methods in `SeqMap`.
*
* Note that when checking for equality [[SeqMap]] does not take into account
* ordering.
*
* @tparam K the type of the keys contained in this linked map.
* @tparam V the type of the values associated with the keys in this linked map.
*
* @define coll mutable Seq map
* @define Coll `mutable.SeqMap`
*/
trait SeqMap[K, V] extends Map[K, V]
with collection.SeqMap[K, V]
with MapOps[K, V, SeqMap, SeqMap[K, V]]
with MapFactoryDefaults[K, V, SeqMap, Iterable] {
override def mapFactory: MapFactory[SeqMap] = SeqMap
}
object SeqMap extends MapFactory.Delegate[SeqMap](LinkedHashMap)