LazyValue

org.specs2.control.LazyValue
case class LazyValue[T](t: () => T)

This class simply encapsulates a lazy value which will be only evaluated once

Attributes

See also

org.specs2.specification.process.RandomSequentialExecutor for an example of use

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def execute: LazyValue[T]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val value: T