org.clulab.wm.eidoscommon.utils.IdentityHashMap.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eidos-eidoscommon_2.12 Show documentation
Show all versions of eidos-eidoscommon_2.12 Show documentation
Code to be shared by other Eidos subprojects and clients
The newest version!
package org.clulab.wm.eidoscommon.utils
import scala.collection.JavaConverters._
import scala.collection.mutable
object IdentityHashMap {
type IdentityHashMap[K <: AnyRef, V] = mutable.Map[K, V]
def apply[K <: AnyRef, V](): IdentityHashMap[K, V] = {
val jMap = new java.util.IdentityHashMap[K, V]
val sMap = jMap.asScala
sMap
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy