电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

Java数据结构与集合类

Java数据结构与集合类_第1页
1/29
Java数据结构与集合类_第2页
2/29
Java数据结构与集合类_第3页
3/29
Java 数据结构与集合类(28页)Good is good, but better carries it.精益求精,善益求善。Java collections A collection allows a group of objects to be treated as a single unit. Arbitrary objects can be stored, retrieved and manipulated as elements of these collections.  Collections Framework presents a set of standard utility classes to manage such collections.1. It contains ‘core interfaces’ which allow collections to be manipulated independent of their implementations. These interfaces define the common functionality exhibited by collections and facilitate data exchange between collections.2. A small set of implementations that are concrete implementations of the core interfaces, providing data structures that a program can use.3. An assortment of algorithms to perform various operations such as, sorting and searching. Collections framework is interface based, collections are implemented according to their interface type, rather than by implementation types. By using the interfaces whenever collections of objects need to be handled, interoperability and interchangeability are achieved. By convention each of the collection implementation classes provide a constructor to create a collection based on the elements in the Collection object passed as argument. By the same token, Map implementations provide a constructor that accepts a Map argument. This allows the implementation of a collection (Collection/Map) to be changed. But Collections and Maps are not interchangeable. Interfaces and their implementations in Java 1.2Collection||__ Set (no dupes, null allowed based on implementation)  HashSet||||__ SortedSet (Ordered Set)  TreeSet||__ List (ordered collection, dupes OK)  Vector, ArrayList, LinkedList Map (key-value ...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

Java数据结构与集合类

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部