0
|
1 |
"
|
4
|
2 |
COPYRIGHT (c) 1992 by Claus Gittinger
|
84
|
3 |
All Rights Reserved
|
0
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
Link subclass:#ValueLink
|
254
|
14 |
instanceVariableNames:'value'
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Collections-Support'
|
0
|
18 |
!
|
|
19 |
|
31
|
20 |
!ValueLink class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1992 by Claus Gittinger
|
84
|
25 |
All Rights Reserved
|
0
|
26 |
|
31
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
|
34 |
!
|
0
|
35 |
|
31
|
36 |
documentation
|
|
37 |
"
|
|
38 |
this class provides Links which can hold a value.
|
|
39 |
Instances are typically used as elements in a linkedList.
|
254
|
40 |
|
|
41 |
[see also:]
|
|
42 |
LinkedList
|
|
43 |
Collection OrderedCollection
|
|
44 |
|
|
45 |
[author:]
|
|
46 |
Claus Gittinger
|
31
|
47 |
"
|
|
48 |
! !
|
0
|
49 |
|
291
|
50 |
!ValueLink class methodsFor:'instance creation'!
|
|
51 |
|
|
52 |
value: aValue
|
|
53 |
"return a new instance with a value of aValue."
|
|
54 |
|
|
55 |
^self basicNew value:aValue
|
|
56 |
|
|
57 |
"Created: 9.5.1996 / 16:12:19 / cg"
|
|
58 |
! !
|
|
59 |
|
0
|
60 |
!ValueLink methodsFor:'accessing'!
|
|
61 |
|
|
62 |
value
|
|
63 |
"return the Links contents"
|
|
64 |
|
|
65 |
^ value
|
|
66 |
!
|
|
67 |
|
|
68 |
value:anObject
|
|
69 |
"set the Links contents"
|
|
70 |
|
|
71 |
value := anObject
|
|
72 |
! !
|
124
|
73 |
|
131
|
74 |
!ValueLink class methodsFor:'documentation'!
|
|
75 |
|
|
76 |
version
|
291
|
77 |
^ '$Header: /cvs/stx/stx/libbasic2/ValueLink.st,v 1.13 1996-05-09 14:12:38 cg Exp $'
|
131
|
78 |
! !
|