All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wvlet.airframe.surface.package.scala Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package wvlet.airframe

import java.util.concurrent.ConcurrentHashMap
import scala.collection.mutable
import scala.jdk.CollectionConverters._

package object surface {
  val surfaceCache = new ConcurrentHashMap[String, Surface]().asScala

  def getCached(fullName: String): Surface = {
    surfaceCache(fullName)
  }

  def newCacheMap[A, B]: scala.collection.mutable.Map[A, B] = new mutable.WeakHashMap[A, B]()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy