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

stores.ValueMemberStore.scala Maven / Gradle / Ivy

The newest version!
package artisanal.pickle.maker 
package stores
import tags._
import scala.reflect.internal.pickling._
import java.util.concurrent.ConcurrentHashMap

case class ValueMemberStore() {

   val valueMembers: scala.collection.concurrent.Map[String, ValueMember] = scala.collection.convert.Wrappers.JConcurrentMapWrapper(new ConcurrentHashMap[String, ValueMember]())

  def accept(valueMember: ValueMember) {
    if (!valueMembers.contains(valueMember.tpeName)) {
      valueMembers += valueMember.tpeName -> valueMember
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy