享元模式
2017-01-03 20:15:45 0 举报
享元模式
作者其他创作
大纲/内容
3.0 checkFlyweight()
2.1 Flyweight fly
FlyweightFactory
Files:HashMap
factory():FlyweightcheckFlyweight():void
1.1 factory(Character('a'))
1.3 Flyweight fly
1.4 opeartion(\"First Call\")
2.2 operation(\"Third Call\")
1.0
:ConcreteFlyweight
:FlyweightFactory
接口
operation():void
1.2
Client
factory:FlayweightFactory
ConcreteFlyweight
intrinsicState:Character
:Client
2.0 factory(Character('a'))
0 条评论
下一页