Java Pocket Guide: Instant Help for Java Programmers by Liguori Robert & Liguori Patricia

Java Pocket Guide: Instant Help for Java Programmers by Liguori Robert & Liguori Patricia

Author:Liguori, Robert & Liguori, Patricia [Liguori, Robert]
Language: eng
Format: azw3
Publisher: O'Reilly Media
Published: 2017-08-28T04:00:00+00:00


Map

Can be

No (Keys)

Unique keys; one value mapping max per key

Queue

Yes

Yes

Holds elements; usually FIFO

Set

Can be

No

Uniqueness matters

Implementations

Table 15-2 lists commonly used collection type implementations, their interfaces, and whether or not they are ordered, sorted, and/or contain duplicates.

Table 15-2. Collection type implementations Implementations Interface Ordered Sorted Dupes Notes

ArrayList

List

Index

No

Yes

Fast resizable array

LinkedList

List

Index

No

Yes

Doubly linked list



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.