home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java 1.2 How-To
/
JavaHowTo.iso
/
3rdParty
/
Bluette
/
Plastic
/
patterns
/
Flyweight.pat
< prev
next >
Wrap
Text File
|
1997-07-13
|
5KB
|
523 lines
<integer>
14
<storable>
<string>
TJavaClass
<integer>
367
<integer>
87
<integer>
522
<integer>
137
<string>
Flyweight
<integer>
0
<integer>
1
<storable>
<string>
TJavaMethod
<string>
Operation
<string>
<integer>
1
<storable>
<string>
TJavaArgument
<string>
extrinsicState
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<integer>
0
<storable>
<string>
TJavaClass
<integer>
272
<integer>
212
<integer>
427
<integer>
277
<string>
ConcreteFlyweight
<integer>
1
<storable>
<string>
TJavaAttribute
<string>
intrinsicState
<string>
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<integer>
1
<storable>
<string>
TJavaMethod
<string>
Operation
<string>
<integer>
1
<storable>
<string>
TJavaArgument
<string>
extrinsicState
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<integer>
0
<storable>
<string>
TJavaClass
<integer>
472
<integer>
212
<integer>
642
<integer>
277
<string>
UnsharedConcreteFlyweight
<integer>
1
<storable>
<string>
TJavaAttribute
<string>
allState
<string>
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<integer>
1
<storable>
<string>
TJavaMethod
<string>
Operation
<string>
<integer>
1
<storable>
<string>
TJavaArgument
<string>
extrinsicState
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<integer>
0
<storable>
<string>
TInheritance
<integer>
432
<integer>
157
<integer>
452
<integer>
177
<storable>
<string>
TJavaClass
<integer>
82
<integer>
212
<integer>
192
<integer>
247
<string>
Client
<integer>
0
<integer>
0
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<integer>
0
<storable>
<string>
TJavaClass
<integer>
87
<integer>
87
<integer>
202
<integer>
137
<string>
FlyweightFactory
<integer>
0
<integer>
1
<storable>
<string>
TJavaMethod
<string>
GetFlyweight
<string>
<integer>
1
<storable>
<string>
TJavaArgument
<string>
key
<string>
<integer>
0
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<boolean>
FALSE
<string>
<integer>
7
<string>
// if (flyweight[key] exists) {
<string>
// return existing flyweight;
<string>
// } else {
<string>
// create new flyweight;
<string>
// add it to pool of flyweights;
<string>
// return the new flyweight;
<string>
// }
<integer>
0
<boolean>
FALSE
<boolean>
TRUE
<integer>
0
<storable>
<string>
TText
<integer>
87
<integer>
57
<integer>
242
<integer>
72
<string>
Design Pattern : Flyweight
<storable>
<string>
TSuperClassing
<integer>
0
<integer>
3
<integer>
2
<integer>
442
<integer>
137
<integer>
442
<integer>
157
<storable>
<string>
TSubClassing
<integer>
3
<integer>
1
<integer>
3
<integer>
432
<integer>
177
<integer>
347
<integer>
177
<integer>
347
<integer>
212
<storable>
<string>
TSubClassing
<integer>
3
<integer>
2
<integer>
3
<integer>
452
<integer>
177
<integer>
557
<integer>
177
<integer>
557
<integer>
212
<storable>
<string>
TAssociation
<integer>
4
<integer>
5
<integer>
2
<integer>
132
<integer>
212
<integer>
132
<integer>
137
<string>
<string>
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<storable>
<string>
TAssociation
<integer>
4
<integer>
1
<integer>
5
<integer>
132
<integer>
247
<integer>
132
<integer>
307
<integer>
232
<integer>
307
<integer>
232
<integer>
247
<integer>
272
<integer>
247
<string>
<string>
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<storable>
<string>
TAssociation
<integer>
4
<integer>
2
<integer>
5
<integer>
132
<integer>
247
<integer>
132
<integer>
307
<integer>
447
<integer>
307
<integer>
447
<integer>
247
<integer>
472
<integer>
247
<string>
<string>
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<integer>
0
<storable>
<string>
TAssociation
<integer>
5
<integer>
0
<integer>
2
<integer>
202
<integer>
107
<integer>
367
<integer>
107
<string>
<string>
flyweights
<integer>
0
<integer>
0
<integer>
1
<integer>
0
<integer>
0