<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)換 
    主站蜘蛛池模板: 影音先锋在线免费观看| 久久精品网站免费观看| 久久久久国产成人精品亚洲午夜 | 99亚洲男女激情在线观看| 69天堂人成无码麻豆免费视频| 亚洲精品私拍国产福利在线| 另类免费视频一区二区在线观看| 亚洲av无码一区二区三区乱子伦| 国产成人AV免费观看| 亚洲人成在线影院| 91九色精品国产免费| 亚洲综合色婷婷在线观看| 黄a大片av永久免费| 免费看又黄又爽又猛的视频软件| 国产免费爽爽视频免费可以看| 污污视频免费观看网站| 亚洲中文字幕无码久久综合网| 国产无遮挡裸体免费视频在线观看 | 亚洲无人区午夜福利码高清完整版| fc2免费人成在线| 亚洲av无码av制服另类专区| 99re在线视频免费观看| 在线亚洲午夜片AV大片| 国产a级特黄的片子视频免费| GOGOGO免费观看国语| 亚洲一区综合在线播放| 成人免费无码大片A毛片抽搐| 国产午夜亚洲精品不卡| 亚洲AV无码一区东京热久久| 91免费资源网站入口| 日本中文字幕免费看| 亚洲视频在线观看| 日韩免费观看的一级毛片| 三级黄色片免费看| 亚洲AV无码国产精品色| 亚洲伊人成无码综合网| 欧洲一级毛片免费| 久久久受www免费人成| 亚洲欧洲日本在线观看| 久久亚洲色一区二区三区| 色窝窝免费一区二区三区|