blob: 424043ba9a5b2aa779acd195dd4214861b16bcb8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2006-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://www.scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala.collection.jcl
/** A map that is backed by a Java linked hash map, which fixes iteration
* order in terms of insertion order.
*
* @author Sean McDirmid
*/
class LinkedHashMap[K, E](override val underlying: java.util.LinkedHashMap[K, E]) extends MapWrapper[K, E] {
def this() = this(new java.util.LinkedHashMap[K, E])
override def clone: LinkedHashMap[K, E] =
new LinkedHashMap[K, E](underlying.clone().asInstanceOf[java.util.LinkedHashMap[K, E]])
}
|