Back: ValueAdaptor-basic
Up: Class reference
Forward: ValueHolder class-creating instances
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.171 ValueHolder

Defined in namespace Smalltalk
Category: Language-Data types
I store my value in a variable, and know whether I have been initialized or not. If you ask for my value and I have not been initialized, I suspend the process until a value has been assigned.

6.171.1 ValueHolder class: creating instances  (class)
6.171.2 ValueHolder: accessing  (instance)
6.171.3 ValueHolder: initializing  (instance)


6.171.1 ValueHolder class: creating instances

new
Create a ValueHolder whose starting value is nil

null
Answer the sole instance of NullValueHolder

with: anObject
Create a ValueHolder whose starting value is anObject


6.171.2 ValueHolder: accessing

value
Get the value of the receiver.

value: anObject
Set the value of the receiver.


6.171.3 ValueHolder: initializing

initialize
Private - set the initial value of the receiver




This document was generated on May, 12 2002 using texi2html