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

org.rogach.scallop.LazyMap.scala Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
package org.rogach.scallop

/** A class that lazily encapsulates a map inside.
  */
class LazyMap[A,+B](
  under: => Map[A,B],
  private[scallop] val cliOption: Option[CliOption]
) extends Map[A,B] with ScallopOptionBase {
  private[this] lazy val m = under
  def get(key: A) = m.get(key)
  def iterator = m.iterator
  def removed(key: A) = m.removed(key)
  def updated[B1 >: B](key: A, value: B1) = m.updated(key, value)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy