net.liftweb.util.ThreadLazy

class ThreadLazy

class ThreadLazy[TheType](theFunc : => TheType)

 extends LoanWrapper with ScalaObject


A thread-local lazy value that provides a means to evaluate a function in a lazily-evaluated scope.
param
theFunc - the lazily-evaluated expression for which to cache the result in thread-local scope.


Companion: ThreadLazy

Source: FatLazy.scala(136)

 Constructors

def this(theFunc : => TheType)

 Fields

get.. def get
Return the value, evaluating the default expression if necessary
TheType

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
apply.. def apply[T](f : => T)
Save the current cached lazy value, if any, evaluate the specified function and then restore the previous value to the cache [details]
The effect of this function is to essentially perform a reset of this lazy value to being unevaluated prior to function evaluation.
T
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
reset.. def reset
Reset the lazy value so that it will be recalculated from the default expression on the next retrieval
Unit
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.