gembin

          OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

          HBase, Hadoop, ZooKeeper, Cassandra

          Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

          There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

          About Me

           

          TreeSet vs HashSet vs LinkedHashSet

          TreeSetHashSetLinkedHashSet
          public class TreeSet
          extends AbstractSet
          implements SortedSetCloneableSerializable
          public class HashSet
          extends AbstractSet
          implements SetCloneableSerializable
          public class LinkedHashSet
          extends HashSet
          implements SetCloneableSerializable
          unique valuesunique valuesUnique values
          It stores its elements in a red-black treeIt stores its elements in a hash tableis implemented as a hash table with a linked list running through it
          Order : ascending orderundefinedinsertion order
          Performance : Slowbetter than LinkedHashSethas fast adding to the start of the list, and fast deletion from the interior via iteration
          operations (addremove and contains)operations (addremovecontains and size)operations (addcontains and remove)
          add, addAll,ceiling,clear,clone,comparator,contains,
          descendingIterator,descendingSet,first,floor,
          hashSet,higher,isEmpty,iterator,last,lower,pollFirst,
          remove,size,subSet,tailSet
          addclearclonecontainsisEmpty,iteratorremovesizeaddclearclonecontainsisEmpty,iteratorremovesize
          From AbstractSet:
          equalshashCoderemoveAll
          equalshashCoderemoveAllequalshashCoderemoveAll
          containsAllretainAlltoArraytoArray,toStringAbstractCollection:
          addAllcontainsAllretainAlltoArray,toArraytoString
          addAllcontainsAllretainAlltoArray,toArraytoString
          Set:
          containsAllequalshashCoderemoveAll,retainAlltoArraytoArray
          addAllcontainsAllequalshashCode,removeAllretainAlltoArraytoArrayaddaddAllclearcontainscontainsAll,equalshashCodeisEmptyiteratorremove,removeAllretainAllsizetoArraytoArray

          posted on 2012-03-31 11:30 gembin 閱讀(716) 評論(0)  編輯  收藏 所屬分類: JavaSE

          導航

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(440)

          隨筆檔案(378)

          文章檔案(6)

          新聞檔案(1)

          相冊

          收藏夾(9)

          Adobe

          Android

          AS3

          Blog-Links

          Build

          Design Pattern

          Eclipse

          Favorite Links

          Flickr

          Game Dev

          HBase

          Identity Management

          IT resources

          JEE

          Language

          OpenID

          OSGi

          SOA

          Version Control

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          free counters
          主站蜘蛛池模板: 龙口市| 沅江市| 台南县| 图木舒克市| 沁源县| 利津县| 商南县| 昌吉市| 互助| 札达县| 甘肃省| 博爱县| 栾川县| 育儿| 大方县| 宾阳县| 德兴市| 山丹县| 开封县| 志丹县| 潢川县| 黄平县| 鄂尔多斯市| 泸定县| 潞城市| 西丰县| 西华县| 习水县| 前郭尔| 长汀县| 北流市| 石渠县| 乐业县| 荔浦县| 宜城市| 海丰县| 长沙县| 海盐县| 玛曲县| 湛江市| 大洼县|