author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 31 May 2018 10:52:50 +0100 | |
branch | jv |
changeset 4330 | 998eb03f0736 |
parent 3011 | 1997ff6e7e55 |
permissions | -rw-r--r-- |
1443 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
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 |
||
1231 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
15 |
"{ NameSpace: Packages }" |
|
16 |
||
17 |
Collection subclass:#PrerequisiteCollection |
|
18 |
instanceVariableNames:'collection' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Package-Prerequisite' |
|
22 |
! |
|
23 |
||
1443 | 24 |
!PrerequisiteCollection class methodsFor:'documentation'! |
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! ! |
|
1231 | 39 |
|
40 |
!PrerequisiteCollection class methodsFor:'instance creation'! |
|
41 |
||
42 |
new |
|
43 |
^ self basicNew initialize |
|
44 |
! ! |
|
45 |
||
46 |
!PrerequisiteCollection methodsFor:'adding & removing'! |
|
47 |
||
48 |
add:anObject |
|
49 |
^ collection add:anObject |
|
50 |
! |
|
51 |
||
52 |
addFirst:anObject |
|
53 |
^ collection addFirst:anObject |
|
54 |
! |
|
55 |
||
56 |
remove:anObject ifAbsent:aBlock |
|
57 |
^ collection remove:anObject ifAbsent:aBlock |
|
58 |
! |
|
59 |
||
60 |
removeIdentical:arg1 ifAbsent:aBlock |
|
61 |
^ collection removeIdentical:arg1 ifAbsent:aBlock |
|
62 |
! |
|
63 |
||
64 |
removeLast |
|
65 |
^ collection removeLast |
|
66 |
! ! |
|
67 |
||
68 |
!PrerequisiteCollection methodsFor:'enumerating'! |
|
69 |
||
70 |
do:aOneArgBlock |
|
71 |
^ collection do:aOneArgBlock |
|
72 |
! |
|
73 |
||
74 |
reverseDo:aOneArgBlock |
|
75 |
^ collection reverseDo:aOneArgBlock |
|
76 |
! ! |
|
77 |
||
78 |
!PrerequisiteCollection methodsFor:'evaluation'! |
|
79 |
||
80 |
evaluate |
|
81 |
self do:[:aPrerequisite | |
|
82 |
aPrerequisite evaluate. |
|
83 |
]. |
|
84 |
||
85 |
! ! |
|
86 |
||
87 |
!PrerequisiteCollection methodsFor:'growing'! |
|
88 |
||
89 |
grow:anInteger |
|
90 |
^ collection grow:anInteger |
|
91 |
! ! |
|
92 |
||
93 |
!PrerequisiteCollection methodsFor:'initialize'! |
|
94 |
||
95 |
initialize |
|
96 |
collection := OrderedCollection new. |
|
97 |
! ! |
|
98 |
||
99 |
!PrerequisiteCollection class methodsFor:'documentation'! |
|
100 |
||
101 |
version |
|
3011
1997ff6e7e55
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1443
diff
changeset
|
102 |
^ '$Header: /var/local/cvs/stx/libbasic3/packages/PrerequisiteCollection.st,v 1.2 2006-01-10 09:25:29 cg Exp $' |
1231 | 103 |
! ! |