abstract class LazyCell[A] extends Cell[A]
A cell that evaluates its value on demand. Cell access is unsychronized
for performance reasons. However the cell may be safely accessed from multiple threads
provided its create
method is idempotent.
- Source
- Cell.scala
- Alphabetic
- By Inheritance
- LazyCell
- Cell
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LazyCell()
Abstract Value Members
-
abstract
def
create: A
Create a value.
Create a value. This method is called when the lazy cell is first accessed. After it is first accessed the value will be cached. There is a chance this method will be called more than once if the cell is accessed from multiple threads.
- Attributes
- protected
-
abstract
def
emptyMarker: A
A value of type
A
that indicates the cell hasn't been evaluated.A value of type
A
that indicates the cell hasn't been evaluated. Common values arenull
,None
or0
. It's important the marker is not a valid value.- Attributes
- protected
Concrete 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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
evaluated: Boolean
Whether or not the cell value has been evaluated yet.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Cell → AnyRef → Any
-
def
value: A
The value in the cell.
-
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
- @native() @throws( ... )