Tag: C5

Java与.NET集合框架的比较

Posted by – 2008/12/23

  Java 中的实现
Hash Table Resizable Array Balanced Tree Linked List Hash Table + Linked List
Interfaces Set HashSet   TreeSet   LinkedHashSet
List   ArrayList   LinkedList  
Map HashMap   TreeMap   LinkedHashMap

与之对比

  C5中的实现
Hash Table Resizable Array Balanced Tree Linked List Hash Table + Linked List
Interfaces ICollection HashSet   TreeSet   HashedLinkedList
IList   ArrayList   LinkedList  
IDictionary HashDictionary   TreeDictionary   ???LinkedHashMap

java.util.Collection<T>对应 C5中的C5.ICollection

C5只读模式的集合

GuardedCollection<T>
GuardedList<T>
GuardedDictionary<K,V>

C5在线文档,其中有很好的注释讲解各种数据结构。在线版本可能不完整,但很方便。更多信息请参见C5项目主页