<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Feeling

        三人行,必有我?guī)熝?/p>

       ::  :: 新隨筆 :: 聯(lián)系 ::  :: 管理 ::
      185 隨筆 :: 0 文章 :: 392 評(píng)論 :: 0 Trackbacks

    comparator 

    Decorator Pattern and Adapter Pattern have the same alias name: wrapper. But they face different aspects. Decorator pattern changes the object function, but the adapter pattern changes the interface.

    The typical decorator pattern is the java OutputStream, you can use the BufferedOutputStream to wrap it, then get the extra function.
    The typical adapter pattern in the BIRT is the ElementAdapter, it can convert any object to an other object.

    Decorator pattern must extend the class which you want to wrap, but the adapter class must implements the interface using by the client.


    FlyWeight pattern extracts the same part of some different objects, and the part doesn't be changed when these objects changed. String class uses the FlyWeight pattern, jface 
    ImageRegistry also uses it. 
    FlyWeight can have a interface to get external data, and change the external data's status, but FlyWeight internal status shouldn't be changed.

    The Collections.sort() method implementation contains template method design pattern and strategy design pattern, but it doesn't contain the visitor design pattern. The Collections.sort() method uses the merge sort algorithm, you can't change it, but you can change the comparator logic, it's one step of the sort algorithm. So it's a template method pattern, but not a classic implementation, it uses the callback method to implement the pattern, but not extending the parent template class. The comparator class use the strategy design pattern, it not a visitor pattern, visitor pattern have a accept method to operate the element to deal some logic. 




    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    GitHub |  開(kāi)源中國(guó)社區(qū) |  maven倉(cāng)庫(kù) |  文件格式轉(zhuǎn)換 
    主站蜘蛛池模板: 国产精品免费视频播放器| 亚洲资源在线视频| 国产精品亚洲综合一区在线观看| 天天影视色香欲综合免费| 久久亚洲sm情趣捆绑调教 | 亚洲理论片在线观看| 最近新韩国日本免费观看| 亚洲网址在线观看| 美女被cao免费看在线看网站| 亚洲伊人久久大香线蕉啊| 四虎永久在线观看免费网站网址| 亚洲中文字幕日本无线码| 日本免费无遮挡吸乳视频电影| 亚洲爆乳无码专区www| 四虎影视永久免费观看| 无码 免费 国产在线观看91| 日日噜噜噜噜夜夜爽亚洲精品| 两个人看www免费视频| 亚洲黄色高清视频| 成年在线网站免费观看无广告| 久久亚洲色WWW成人欧美| 亚洲欧洲中文日韩久久AV乱码| 久久99青青精品免费观看| 亚洲一级视频在线观看| 国产色爽免费视频| 久久久免费观成人影院| 亚洲国产美国国产综合一区二区 | 国产在线国偷精品免费看| 久久久久久亚洲精品| 中国在线观看免费高清完整版| 国产精品亚洲lv粉色| 亚洲日韩精品无码专区网站| 中文字幕乱理片免费完整的| 亚洲妇女水蜜桃av网网站| 日韩毛片免费在线观看| 成全视频在线观看免费| 天天爽亚洲中文字幕| 亚洲伊人成无码综合网| 青青视频观看免费99| 九九热久久免费视频| 国产精品亚洲一区二区麻豆|