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

org.specs2.control.LazyValue.scala Maven / Gradle / Ivy

There is a newer version: 4.10.6
Show newest version
package org.specs2
package control

/**
 * This class simply encapsulates a lazy value which will be only evaluated once
 * @see org.specs2.specification.process.RandomSequentialExecution for an example of use
 */
case class LazyValue[T](t: () => T) {
  lazy val value = {
    t()
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy