class FatLazy[T] extends AnyRef
A class that does lazy evaluation
- Alphabetic
- By Inheritance
- FatLazy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
FatLazy(f: ⇒ T)
- f
-- a function that evaluates to the default value of the instance
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
calculated_?: Boolean
Determine whether the value of this FatLazy has been determined.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
defined_?: Boolean
Test whether the value of this class has been set or initialized from the default.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get: T
Get the value of the instance.
Get the value of the instance. If it's not yet been set, call f to calculate it
- returns
the value of the instance
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
reset: Unit
Reset the value of this FatLazy to the default (which will be lazily determined on retrieval.)
-
def
set(v: T): T
Set the instance to a new value and return that value
Set the instance to a new value and return that value
- v
- the new value of the instance
- returns
v
-
def
setFrom(other: FatLazy[T]): Unit
Copy the value of the specified FatLazy into this FatLazy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(v: T): Unit
and the lazy() = foo style of assignment
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )