wvlet.airframe.surface.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airframe-surface_3 Show documentation
Show all versions of airframe-surface_3 Show documentation
A library for extracting object structure surface
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
val methodSurfaceCache = new ConcurrentHashMap[String, Seq[MethodSurface]]().asScala
def getCached(fullName: String): Surface = {
surfaceCache(fullName)
}
def newCacheMap[A, B]: scala.collection.mutable.Map[A, B] = new mutable.WeakHashMap[A, B]()
}